GoogleAuthCredentials class

Inheritance

Properties

client → AuthClient
Get an authenticated client for making requests to googleapis. The client automatically refreshes if necessary. You must have set googleClientId before calling this.
no setter
createBaseClient ↔ Client Function()
Create a new baseClient for the authenticated client.
getter/setter pairinherited
currentUser Future<AuthUser>
Get the user's current information.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user AuthUser
The user's information at the time of login. This may not be up to date.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revoke() Future<void>
Log out of Google. You must have set googleClientId before calling this.
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

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

Static Properties

clientId ClientId
no getter

Static Methods

create(List<String> scopes) Future<GoogleAuthCredentials>
Sign in with Google. You must have set googleClientId before calling this.

Constants

providerId → const String