PlayGamesAuthProvider

classPlayGamesAuthProvider


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

Summary

Constants

constString!
PLAY_GAMES_SIGN_IN_METHOD = "playgames.google.com"

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

constString!
PROVIDER_ID = "playgames.google.com"

Unique string identifier for this provider type.

Public functions

java-staticAuthCredential
getCredential(serverAuthCode: String)

Returns a new instance ofAuthCredential 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 ofAuthCredential that wraps a Play Games Server Auth Code. Used when callingsignInWithCredential orlinkWithCredential.

Parameters
serverAuthCode: String

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.