Type Aliases ClaimValidationError ClaimValidationError: { reason?: any ; validatorId: string }
Defined in node_modules/supertokens-website/lib/build/types.d.ts:133 Type declaration Optional reason?: any validatorId: string ClaimValidationResult ClaimValidationResult: { isValid: true } | { isValid: false ; reason?: any }
Defined in node_modules/supertokens-website/lib/build/types.d.ts:127 InputType InputType: WebJSInputType & { accessDeniedScreen?: SessionFeatureBaseConfig ; style?: string ; onHandleEvent?: any }
RecipeInterface RecipeInterface: { addAxiosInterceptors: any ; addFetchInterceptorsAndReturnModifiedFetch: any ; addXMLHttpRequestInterceptor: any ; doesSessionExist: any ; getAccessTokenPayloadSecurely: any ; getGlobalClaimValidators: any ; getInvalidClaimsFromResponse: any ; getUserId: any ; shouldDoInterceptionBasedOnUrl: any ; signOut: any ; validateClaims: any }
Defined in node_modules/supertokens-website/lib/build/types.d.ts:87 Type declaration addAxiosInterceptors: function addAxiosInterceptors( input: { axiosInstance: any ; userContext: any } ) : void Defined in node_modules/supertokens-website/lib/build/types.d.ts:95 Parameters input: { axiosInstance: any ; userContext: any } axiosInstance: any userContext: any Returns void addFetchInterceptorsAndReturnModifiedFetch: function addFetchInterceptorsAndReturnModifiedFetch( input: { originalFetch: any ; userContext: any } ) : ( ( input: URL | RequestInfo , init?: RequestInit ) => Promise < Response > ) Defined in node_modules/supertokens-website/lib/build/types.d.ts:88 Parameters input: { originalFetch: any ; userContext: any } originalFetch: any userContext: any Returns ( ( input: URL | RequestInfo , init?: RequestInit ) => Promise < Response > ) ( input: URL | RequestInfo , init?: RequestInit ) : Promise < Response > Parameters input: URL | RequestInfo Optional init: RequestInit Returns Promise < Response > addXMLHttpRequestInterceptor: function addXMLHttpRequestInterceptor( input: { userContext: any } ) : void Defined in node_modules/supertokens-website/lib/build/types.d.ts:92 Parameters input: { userContext: any } Returns void doesSessionExist: function doesSessionExist( input: { userContext: any } ) : Promise < boolean > Defined in node_modules/supertokens-website/lib/build/types.d.ts:105 Parameters input: { userContext: any } Returns Promise < boolean > getAccessTokenPayloadSecurely: function getAccessTokenPayloadSecurely( input: { userContext: any } ) : Promise < any > Defined in node_modules/supertokens-website/lib/build/types.d.ts:102 Parameters input: { userContext: any } Returns Promise < any > getGlobalClaimValidators: function Defined in node_modules/supertokens-website/lib/build/types.d.ts:121 Parameters getInvalidClaimsFromResponse: function getInvalidClaimsFromResponse( input: { response: { data: any } | Response ; userContext: any } ) : Promise < ClaimValidationError [] > Defined in node_modules/supertokens-website/lib/build/types.d.ts:111 Parameters input: { response: { data: any } | Response ; userContext: any } response: { data: any } | Response userContext: any getUserId: function getUserId( input: { userContext: any } ) : Promise < string > Defined in node_modules/supertokens-website/lib/build/types.d.ts:99 Parameters input: { userContext: any } Returns Promise < string > shouldDoInterceptionBasedOnUrl: function shouldDoInterceptionBasedOnUrl( toCheckUrl: string , apiDomain: string , sessionTokenBackendDomain: undefined | string ) : boolean Defined in node_modules/supertokens-website/lib/build/types.d.ts:125 Parameters toCheckUrl: string apiDomain: string sessionTokenBackendDomain: undefined | string Returns boolean signOut: function signOut( input: { userContext: any } ) : Promise < void > Defined in node_modules/supertokens-website/lib/build/types.d.ts:108 Parameters input: { userContext: any } Returns Promise < void > validateClaims: function Defined in node_modules/supertokens-website/lib/build/types.d.ts:117 Parameters SessionClaim SessionClaim< ValueType > : { getLastFetchedTime: any ; getValueFromPayload: any ; refresh: any }
Defined in node_modules/supertokens-website/lib/build/types.d.ts:153 Type Parameters Type declaration getLastFetchedTime: function getLastFetchedTime( payload: any , _userContext?: any ) : undefined | number Defined in node_modules/supertokens-website/lib/build/types.d.ts:156 Parameters payload: any Optional _userContext: any Returns undefined | number getValueFromPayload: function getValueFromPayload( payload: any , _userContext?: any ) : undefined | ValueType Defined in node_modules/supertokens-website/lib/build/types.d.ts:155 Parameters payload: any Optional _userContext: any Returns undefined | ValueType refresh: function refresh( userContext: any ) : Promise < void > Defined in node_modules/supertokens-website/lib/build/types.d.ts:154 Parameters Returns Promise < void > SessionClaimValidator SessionClaimValidator: { id: string ; refresh: any ; shouldRefresh: any ; validate: any }
Defined in node_modules/supertokens-website/lib/build/types.d.ts:137 Type declaration Readonly id: string refresh: function refresh( userContext: any ) : Promise < void > Defined in node_modules/supertokens-website/lib/build/types.d.ts:142 Parameters Returns Promise < void > shouldRefresh: function shouldRefresh( accessTokenPayload: any , userContext: any ) : boolean | Promise < boolean > Defined in node_modules/supertokens-website/lib/build/types.d.ts:147 Parameters accessTokenPayload: any userContext: any Returns boolean | Promise < boolean > validate: function Defined in node_modules/supertokens-website/lib/build/types.d.ts:151 Parameters accessTokenPayload: any userContext: any SessionContextType SessionContextType: LoadedSessionContext | { loading: true }
Makes an API call that will refresh the claim in the token.