Abedalkareem / games_services

A Flutter plugin to support game center and google play games services.
118 stars 48 forks source link

Add optional `forceRefreshToken` for Android `requestServerSideAccess`. #176

Closed yukinoshita0219 closed 3 weeks ago

yukinoshita0219 commented 3 weeks ago

As per the docs, Android GamesSignInClient.requestServerSideAccess has an optional parameter forceRefreshToken.

(Optional) If your game server requires offline access (long lived access using a refresh token) to Play Games Services, you can set the forceRefreshToken parameter to true.

However it is hard-coded to be false. I changed it to an optional parameter which defaults to false.