These are the SDK reference docs. If you’re looking for docs to implement SuperTokens, you might want to check out the User Guides

Hierarchy

  • default

Index

Constructors

Properties

SessionAuth: FC<PropsWithChildren<SessionAuthProps & { userContext?: any }>> = SessionAuthWrapper
useClaimValue: (<T>(claim: SessionClaim<T>) => { loading: true } | { doesSessionExist: boolean; loading: false; value: undefined | T }) = useClaimValueFunc

Type declaration

    • <T>(claim: SessionClaim<T>): { loading: true } | { doesSessionExist: boolean; loading: false; value: undefined | T }
    • Type Parameters

      • T

      Parameters

      Returns { loading: true } | { doesSessionExist: boolean; loading: false; value: undefined | T }

useSessionContext: (() => SessionContextType) = useSessionContextFunc

Type declaration

Methods

  • addAxiosInterceptors(axiosInstance: any, userContext?: any): void
  • attemptRefreshingSession(): Promise<boolean>
  • doesSessionExist(input?: { userContext?: any }): Promise<boolean>
  • getAccessTokenPayloadSecurely(input?: { userContext?: any }): Promise<any>
  • getInvalidClaimsFromResponse(input: { response: Response | { data: any }; userContext: any }): Promise<ClaimValidationError[]>
  • getUserId(input?: { userContext?: any }): Promise<string>
  • init(config?: InputType): CreateRecipeFunction<unknown, unknown, unknown, any>
  • signOut(input?: { userContext?: any }): Promise<void>

Generated using TypeDoc