Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

Methods

  • getLoginChallengeInfo(input: { loginChallenge: string; options?: RecipeFunctionOptions; userContext?: any }): Promise<{ fetchResponse: Response; info: LoginInfo; status: "OK" }>
  • Returns information about an OAuth login in progress

    throws

    STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR"

    Parameters

    Returns Promise<{ fetchResponse: Response; info: LoginInfo; status: "OK" }>

    {status: "OK", info: LoginInfo}

  • getRedirectURLToContinueOAuthFlow(input: { loginChallenge: string; options?: RecipeFunctionOptions; userContext?: any }): Promise<{ fetchResponse: Response; frontendRedirectTo: string; status: "OK" }>
  • Accepts the OAuth2 Login request and returns the redirect URL to continue the OAuth flow.

    throws

    STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR"

    Parameters

    Returns Promise<{ fetchResponse: Response; frontendRedirectTo: string; status: "OK" }>

    {status: "OK", frontendRedirectTo: string}

  • logOut(input: { logoutChallenge: string; options?: RecipeFunctionOptions; userContext?: any }): Promise<{ fetchResponse: Response; frontendRedirectTo: string; status: "OK" }>
  • Accepts the OAuth2 Logout request, clears the SuperTokens session and returns post logout redirect URL.

    throws

    STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR"

    Parameters

    Returns Promise<{ fetchResponse: Response; frontendRedirectTo: string; status: "OK" }>

    {status: "OK", frontendRedirectTo: string}

Generated using TypeDoc