java.lang.Object | |
↳ | com.google.firebase.auth.GoogleAuthProvider |
Represents the Google Sign-In authentication provider. Use this class to obtain GoogleAuthCredential
s.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PROVIDER_ID | Unique string identifier for this provider type. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a new instance of
AuthCredential that wraps Google Sign-In ID or access tokens. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Unique string identifier for this provider type.
Returns a new instance of AuthCredential
that wraps Google Sign-In ID or access tokens.
Used when calling signInWithCredential(AuthCredential)
or linkWithCredential(AuthCredential)
.
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
|
Returns | |
---|---|
AuthCredential |