public class

PlayGamesAuthProvider

extends Object
java.lang.Object
   ↳ com.google.firebase.auth.PlayGamesAuthProvider

Class Overview

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

Summary

Constants
String PLAY_GAMES_SIGN_IN_METHOD Unique string identifier for Google Play Games Service sign-in method.
String PROVIDER_ID Unique string identifier for this provider type.
Public Methods
static AuthCredential getCredential(String serverAuthCode)
Returns a new instance of AuthCredential that wraps a Play Games Server Auth Code.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String PLAY_GAMES_SIGN_IN_METHOD

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

Constant Value: "playgames.google.com"

public static final String PROVIDER_ID

Unique string identifier for this provider type.

Constant Value: "playgames.google.com"

Public Methods

public static AuthCredential getCredential (String serverAuthCode)

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

Parameters
serverAuthCode String: a valid Google Play Games server auth code, obtained from Google Play Games Sign In SDK.
Returns
AuthCredential