Auth
getSession()
Parameters
context optional AuthContext
Property | Type | Required | Notes |
---|---|---|---|
context.errors | Partial<Record<StateErrorTypes, AuthErrorPayload>> | ✔️ | |
context.importTokenAttempts | number | ✔️ | 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.user |
| ✔️ |