Packagecom.distriqt.extension.firebase.auth
Classpublic class GoogleAuthProvider
InheritanceGoogleAuthProvider Inheritance Object

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



Public Methods
 MethodDefined 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
Constructor Detail
GoogleAuthProvider()Constructor
public function GoogleAuthProvider()



Method Detail
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

Returns
AuthCredential — A new instance of AuthCredential used for signInWithCredential or linkWithCredential