Parameters


context optional AuthContext

PropertyTypeRequiredNotes
context.errorsPartial<Record<StateErrorTypes, AuthErrorPayload>>✔️
context.importTokenAttemptsnumber✔️Number of times the user tried to get an access token from a refresh token but got a network error
context.refreshToken{ value: string | null, isPAT: boolean }✔️
context.refreshTimer{ startedAt: Date | null, attempts: number, lastAttempt: Date | null }✔️
context.accessToken{ value: string | null, expiresAt: Date | null, expiresInSeconds: number | null }✔️
context.mfa{ ticket: string } | null✔️
context.userUser | null✔️