# Google Play authentication godot (but should apply to any engine)

**URL:** <https://forum.heroiclabs.com/t/google-play-authentication-godot-but-should-apply-to-any-engine/2139>\
**Category:** Client Libraries\
**Tags:** server-framework, authentication, sdk-godot\
**Created:** [November 27, 2021, 10:12am UTC](https://forum.heroiclabs.com/t/google-play-authentication-godot-but-should-apply-to-any-engine/2139 "2021-11-27T10:12:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwwwwwwww](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/rwwwwwwww/32/891_2.png) [@rwwwwwwww](https://forum.heroiclabs.com/u/rwwwwwwww)\
**Post date:** [November 27, 2021, 10:12am UTC](https://forum.heroiclabs.com/t/google-play-authentication-godot-but-should-apply-to-any-engine/2139/1 "2021-11-27T10:12:17Z")

</div>

I am using Godot and currently have a plugin that allows me to log into Google Play Services (the one that has the banner come up on the top of the screen).

This returns some user data like this  
`{displayName:Jake Sparrow, email:jacksparrow@gmail.com, id:409554710058764681151}`

I tried using `authenticate_google_async()` but that didnt work so I moved to `authenticate_custom_async`. This now will create and account but all I am doing is essentially passing the google play ID that was returned to me from the google play login. This poses an obvious security risk.  
Anyone with someone elses ID can login to their account, this ID is the same across different games, ive checked.

I dont exactly know where to go with this. What we ideally want to do is have the user open up the app, auto log in to google play services and that starts the auth process, and logs them in. All this should be automatic and only take a few seconds at most.

Anyone know a better way to achieve this than what we are currently doing?

---

<div class="post-metadata">

**Author:** ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)\
**Post date:** [November 29, 2021, 9:57am UTC](https://forum.heroiclabs.com/t/google-play-authentication-godot-but-should-apply-to-any-engine/2139/2 "2021-11-29T09:57:10Z")

</div>

This may be a bug in the Godot SDK. Can you please post a minimal example together that demonstrates the problematic code and example and post it as an issue here:

> **[GitHub - heroiclabs/nakama-godot: Godot client for Nakama server written in...](https://github.com/heroiclabs/nakama-godot)**
>
> Godot client for Nakama server written in GDScript. - GitHub - heroiclabs/nakama-godot: Godot client for Nakama server written in GDScript.
