PlayGamesAuthProvider

public class PlayGamesAuthProvider


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

Summary

Constants

static final String
PLAY_GAMES_SIGN_IN_METHOD = "playgames.google.com"

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

static final String
PROVIDER_ID = "playgames.google.com"

Unique string identifier for this provider type.

Public methods

static @NonNull AuthCredential
getCredential(@NonNull String serverAuthCode)

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

Constants

PLAY_GAMES_SIGN_IN_METHOD

public static final String PLAY_GAMES_SIGN_IN_METHOD = "playgames.google.com"

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

PROVIDER_ID

public static final String PROVIDER_ID = "playgames.google.com"

Unique string identifier for this provider type.

Public methods

getCredential

public static @NonNull AuthCredential getCredential(@NonNull String serverAuthCode)

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

Parameters
@NonNull String serverAuthCode

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