Package | com.distriqt.extension.firebase.auth |
Class | public class GoogleAuthProvider |
Inheritance | GoogleAuthProvider ![]() |
GoogleAuthCredential
s.
Method | Defined By | ||
---|---|---|---|
GoogleAuthProvider | |||
getCredential(idToken:String, accessToken:String):AuthCredential [static]
Returns a new instance of AuthCredential that wraps Google Sign-In ID or access tokens. | GoogleAuthProvider |
GoogleAuthProvider | () | Constructor |
public function GoogleAuthProvider()
getCredential | () | method |
public static function getCredential(idToken:String, accessToken:String):AuthCredential
Returns a new instance of AuthCredential
that wraps Google Sign-In ID or access tokens.
Both parameters are optional but at least one must be present. Pass null
for parameters to ignore.
var credential:AuthCredential = GoogleAuthProvider.getCredential( googleIdToken, null );
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
|
AuthCredential — A new instance of AuthCredential used for signInWithCredential or linkWithCredential
|