GoogleAuthProvider

class GoogleAuthProvider


Represents the Google Sign-In authentication provider. Use this class to obtain s.

Summary

Constants

const String!
GOOGLE_SIGN_IN_METHOD = "google.com"

Unique string identifier for Google sign-in method.

const String!
PROVIDER_ID = "google.com"

Unique string identifier for this provider type.

Public functions

java-static AuthCredential
getCredential(idToken: String?, accessToken: String?)

Returns a new instance of AuthCredential that wraps Google Sign-In ID or access tokens.

Constants

GOOGLE_SIGN_IN_METHOD

const val GOOGLE_SIGN_IN_METHOD = "google.com": String!

Unique string identifier for Google sign-in method.

PROVIDER_ID

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

Unique string identifier for this provider type.

Public functions

getCredential

java-static fun getCredential(idToken: String?, accessToken: String?): AuthCredential

Returns a new instance of AuthCredential that wraps Google Sign-In ID or access tokens. Used when calling signInWithCredential or linkWithCredential.

Both parameters are optional but at least one must be present.

Parameters
idToken: String?

a valid Google Sign-In id token, obtained from the Google Sign-In SDK

accessToken: String?

a valid Google Sign-In access token, obtained from the Google Sign-In SDK