Authentication actions exposed through context.
Operation Queuing Note: This layer implements queuing for critical auth operations while offline. Operations dequeue when connectivity restores. Failed sync-level operations are managed by useSynchronization hook (see storage.ts).
export interface AuthActionsContextValue { login: (credentials: ApiCredentials) => Promise<void>; refreshToken: () => Promise<void>; logout: () => void; cancelAuth: () => Promise<void>; setCredentialSource: (source: "default" | "custom") => void; updateCustomCredentials: ( clientId: string, clientSecret: string, redirectUri: string, ) => void; enqueueWhenOnline: (taskId: string, fn: () => Promise<void>) => void;} Copy
export interface AuthActionsContextValue { login: (credentials: ApiCredentials) => Promise<void>; refreshToken: () => Promise<void>; logout: () => void; cancelAuth: () => Promise<void>; setCredentialSource: (source: "default" | "custom") => void; updateCustomCredentials: ( clientId: string, clientSecret: string, redirectUri: string, ) => void; enqueueWhenOnline: (taskId: string, fn: () => Promise<void>) => void;}
Log in with credentials.
Refresh the authentication token.
Log out the user.
Cancel an in-progress auth flow.
Set the credential source.
Update custom credentials.
Queue a task for execution when online (with deduplication).
Authentication actions exposed through context.
Operation Queuing Note: This layer implements queuing for critical auth operations while offline. Operations dequeue when connectivity restores. Failed sync-level operations are managed by useSynchronization hook (see storage.ts).
Source