GoogleSignInCredentials constructor

GoogleSignInCredentials({
  1. required String accessToken,
  2. String? refreshToken,
  3. List<String> scopes = const [],
  4. String? tokenType,
  5. String? idToken,
})

Object to store all necessary values regarding Google OAuth2.0 Credentials.

You need to provide refreshToken in case you are not on a mobile device.

Implementation

GoogleSignInCredentials({
  required this.accessToken,
  this.refreshToken,
  this.scopes = const [],
  this.tokenType,
  this.idToken,
});