GoogleAuthService class
Google Sign-In for Gemini API access.
Uses the google_sign_in package for native sign-in flow.
The OAuth token is used as a Bearer token with the Gemini API.
Constructors
- GoogleAuthService({GoogleSignIn? signIn})
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
-
getAccessToken(
) → Future< String> - Get a valid access token, refreshing if needed.
-
getUserEmail(
) → Future< String?> - The signed-in user's email (restores the session if needed).
-
isSignedIn(
) → Future< bool> - Whether the user is signed in.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signIn(
) → Future< void> - Start the Google Sign-In flow.
-
signOut(
) → Future< void> - Sign out.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited