GoogleAuth class

Convenience methods for handling authentication with Google and accessing Google's APIs.

Constructors

GoogleAuth()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

clientSecret GoogleClientSecret?
The client secret loaded from config/google_client_secret.json, null if the client secrets failed to load.
final

Static Methods

authClientForUser(Session session, int userId) Future<AutoRefreshingAuthClient?>
Returns an authenticated client for a specific, authenticated user. The client can be used to access Google's APIs. To be able to get a client the user must have been authenticated with Google, otherwise null is returned.