Iakobs / godot-play-game-services

A Godot 4.2 plugin for integration with Google Play Game Services
MIT License
82 stars 5 forks source link

Proposal: Access to Server Auth Token #10

Closed AndrewSumsion closed 4 months ago

AndrewSumsion commented 5 months ago

A very useful feature that is exposed by the GamesSignInClient API is the ability to get a server auth token that can be used to verify a user.

See more here: https://developers.google.com/games/services/android/offline-access#get_the_server_auth_code

It doesn't look like this feature is present, but it should be pretty simple to add to SignInProxy.kt. You would just need to modify the code from the documentation to emit a signal when it gets the server auth token.

Iakobs commented 5 months ago

Hi @AndrewSumsion sorry for the late reply! I've been participating in a game jam and this week has been crazy :)

That is a very good proposal, I will put it first in my priorities list, for what you say is true; the implementation should be easy. I think this might be implemented during the next week.

Thanks again for your interest in the project and your help making proposals!

Iakobs commented 5 months ago

Hi again @AndrewSumsion I just released version 1.3.0 with the method for requesting server side access.

It would be great if you could give it a try and check everything works for you! thanks again!

AndrewSumsion commented 5 months ago

Thank you! I'm still in the process of setting up Google Play Games for my app, but I should be able to try it some time this week. I'll let you know once I've tried the new addition.

Iakobs commented 4 months ago

Hi @AndrewSumsion I'm closing this issue now, if that's ok. Please let me know if you need anything else!