Authentication context state values.

export interface AuthStateContextValue {
authState: AuthState;
isLoading: boolean;
error: string | null;
statusMessage: string | null;
customCredentials: ApiCredentials | null;
isOnline: boolean;
wasOffline: boolean;
}
interface AuthStateContextValue {
    authState: AuthState;
    isLoading: boolean;
    error: null | string;
    statusMessage: null | string;
    customCredentials: null | ApiCredentials;
    isOnline: boolean;
    wasOffline: boolean;
}

Hierarchy (View Summary)

Properties

authState: AuthState

Current authentication state.

isLoading: boolean

Whether an auth operation is in progress.

error: null | string

Current error message, if any.

statusMessage: null | string

Current status message, if any.

customCredentials: null | ApiCredentials

Current custom credentials, if any.

isOnline: boolean

Current network connectivity status (updated via Navigator Online API and window online/offline events).

wasOffline: boolean

Whether the app was offline during this session (useful for retry logic after reconnection).