GoogleAuthCredential constructor

GoogleAuthCredential(
  1. {String? accessToken,
  2. String? idToken}
)

Constructs a GoogleAuthCredential.

accessToken Optional access token. idToken Optional ID token.

Returns a GoogleAuthCredential instance.

Example:

final credential = GoogleAuthCredential(accessToken: 'google_token');

Implementation

GoogleAuthCredential(
    { String? accessToken,
    String? idToken}) : super(providerId: GoogleAuthProvider.PROVIDER_ID,
    signInMethod: GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD, accessToken: accessToken,
    idToken: idToken);