Skip to Content
Anuma SDKReactInternalInterfacesGoogleDriveAuthContextValue

GoogleDriveAuthContextValue

Defined in: src/react/useGoogleDriveAuth.ts:52 

Context value for Google Drive authentication

Properties

accessToken

accessToken: string | null

Defined in: src/react/useGoogleDriveAuth.ts:54 

Current access token (null if not authenticated)


isAuthenticated

isAuthenticated: boolean

Defined in: src/react/useGoogleDriveAuth.ts:56 

Whether user has authenticated with Google Drive


isConfigured

isConfigured: boolean

Defined in: src/react/useGoogleDriveAuth.ts:58 

Whether Google Drive is configured (client ID exists)


logout()

logout: () => Promise<void>

Defined in: src/react/useGoogleDriveAuth.ts:62 

Clear stored token and log out

Returns

Promise<void>


refreshToken()

refreshToken: () => Promise<string | null>

Defined in: src/react/useGoogleDriveAuth.ts:64 

Refresh the access token using the refresh token

Returns

Promise<string | null>


requestAccess()

requestAccess: () => Promise<string>

Defined in: src/react/useGoogleDriveAuth.ts:60 

Request Google Drive access - returns token or redirects to OAuth

Returns

Promise<string>

Last updated on