GoogleSignInCredentials class

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

Constructors

GoogleSignInCredentials({required String accessToken, String? refreshToken, List<String> scopes = const [], String? tokenType, String? idToken})
Object to store all necessary values regarding Google OAuth2.0 Credentials.
GoogleSignInCredentials.fromJson(Map<String, dynamic> json)
Can be used to convert a json Map to this object.

Properties

accessToken String
Google OAuth2.0 Access Token, this is required to create an authenticated http client, which can be further used to call the Google APIs.
final
hashCode int
The hash code for this object.
no setterinherited
idToken String?
Google OAuth2.0 id token.
final
refreshToken String?
Google OAuth2.0 Refresh Token, this is used to get a new accessToken in case of the access token getting expired.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
Google OAuth2.0 scopes, are used to determine the types of services from that our accessToken can access from the GoogleAPIs.
final
tokenType String?
Google OAuth2.0 token type. The most common token type is 'Bearer'.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert the object to a json Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited