Methods
Static addAxiosInterceptors
- addAxiosInterceptors(axiosInstance: any, userContext?: any): void
Parameters
axiosInstance: any
Optional userContext: any
Returns void
Static attemptRefreshingSession
- attemptRefreshingSession(): Promise<boolean>
Static doesSessionExist
- doesSessionExist(input?: { userContext?: any }): Promise<boolean>
Parameters
Optional input: { userContext?: any }
Optional userContext?: any
Returns Promise<boolean>
Static getAccessToken
- getAccessToken(input?: { userContext?: any }): Promise<undefined | string>
Parameters
Optional input: { userContext?: any }
Optional userContext?: any
Returns Promise<undefined | string>
Static getAccessTokenPayloadSecurely
- getAccessTokenPayloadSecurely(input?: { userContext?: any }): Promise<any>
Parameters
Optional input: { userContext?: any }
Optional userContext?: any
Returns Promise<any>
Static getClaimValue
- getClaimValue<T>(input: { claim: SessionClaim<T>; userContext?: any }): Promise<undefined | T>
Type Parameters
Parameters
input: { claim: SessionClaim<T>; userContext?: any }
Optional userContext?: any
Returns Promise<undefined | T>
Static getInvalidClaimsFromResponse
- getInvalidClaimsFromResponse(input: { response: Response | { data: any }; userContext?: any }): Promise<ClaimValidationError[]>
Parameters
input: { response: Response | { data: any }; userContext?: any }
response: Response | { data: any }
Optional userContext?: any
Static getUserId
- getUserId(input?: { userContext?: any }): Promise<string>
Parameters
Optional input: { userContext?: any }
Optional userContext?: any
Returns Promise<string>
Static init
- init(config?: UserInput): CreateRecipeFunction<unknown>
Parameters
Returns CreateRecipeFunction<unknown>
Static signOut
- signOut(input?: { userContext?: any }): Promise<void>
Parameters
Optional input: { userContext?: any }
Optional userContext?: any
Returns Promise<void>
Static validateClaims
Parameters
Optional input: { userContext?: any; overrideGlobalClaimValidators?: any }
Optional userContext?: any
overrideGlobalClaimValidators?:function