Google Drive Auth Manager
Authentication manager for Google Drive.
Uses platform SDKs for secure token management:
Android: Credential Manager with Google ID + GoogleAuthUtil for Drive token
iOS: GoogleSignIn SDK
Tokens are stored securely in platform Keystore/Keychain.
Functions
Ensure user is signed in, triggering sign-in flow if needed.
Ensure user is signed in, triggering sign-in flow if needed.
Get an access token for API calls.
Get an access token for API calls.
Get the signed-in user's email, or null if not signed in.
Get the signed-in user's email, or null if not signed in.
Check if user is currently signed in.
Check if user is currently signed in.
Force-refresh the access token, invalidating any cached token.
Force-refresh the access token, invalidating any cached token.
Trigger the sign-in flow.
Trigger the sign-in flow.