PlayGamesAuthProvider

class PlayGamesAuthProvider


Represents the Google Play Games authentication provider. Use this class to obtain s.

Summary

Constants

const String!
PLAY_GAMES_SIGN_IN_METHOD = "playgames.google.com"

Unique string identifier for Google Play Games Service sign-in method.

const String!
PROVIDER_ID = "playgames.google.com"

Unique string identifier for this provider type.

Public functions

java-static AuthCredential
getCredential(serverAuthCode: String)

Returns a new instance of AuthCredential that wraps a Play Games Server Auth Code.

Constants

PLAY_GAMES_SIGN_IN_METHOD

const val PLAY_GAMES_SIGN_IN_METHOD = "playgames.google.com": String!

Unique string identifier for Google Play Games Service sign-in method.

PROVIDER_ID

const val PROVIDER_ID = "playgames.google.com": String!

Unique string identifier for this provider type.

Public functions

getCredential

java-static fun getCredential(serverAuthCode: String): AuthCredential

Returns a new instance of AuthCredential that wraps a Play Games Server Auth Code. Used when calling signInWithCredential or linkWithCredential.

Parameters
serverAuthCode: String

a valid Google Play Games server auth code, obtained from Google Play Games Sign In SDK.