Options
All
  • Public
  • Public/Protected
  • All
Menu

Module recipe/oauth2provider

Index

References

Re-exports RecipeFunctionOptions

Type Aliases

LoginInfo: { clientId: string; clientName: string; clientUri?: string; logoUri?: string; metadata?: Record<string, any> | null; policyUri?: string; tosUri?: string }

Type declaration

  • clientId: string
  • clientName: string
  • Optional clientUri?: string
  • Optional logoUri?: string
  • Optional metadata?: Record<string, any> | null
  • Optional policyUri?: string
  • Optional tosUri?: string
PostAPIHookContext: RecipePostAPIHookContext<PreAndPostAPIHookAction>
PreAPIHookContext: RecipePreAPIHookContext<PreAndPostAPIHookAction>
PreAndPostAPIHookAction: "GET_LOGIN_CHALLENGE_INFO" | "GET_REDIRECT_URL_TO_CONTINUE_OAUTH_FLOW" | "LOG_OUT"
RecipeInterface: { getLoginChallengeInfo: any; getRedirectURLToContinueOAuthFlow: any; logOut: any }

Type declaration

UserInput: { override?: { functions?: any } } & RecipeModuleUserInput<PreAndPostAPIHookAction>

Functions

  • getLoginChallengeInfo(input: { loginChallenge: string; options?: RecipeFunctionOptions; userContext?: any }): Promise<{ fetchResponse: Response; info: LoginInfo; status: "OK" }>
  • getRedirectURLToContinueOAuthFlow(input: { loginChallenge: string; options?: RecipeFunctionOptions; userContext?: any }): Promise<{ fetchResponse: Response; frontendRedirectTo: string; status: "OK" }>
  • logOut(input: { logoutChallenge: string; options?: RecipeFunctionOptions; userContext?: any }): Promise<{ fetchResponse: Response; frontendRedirectTo: string; status: "OK" }>

Generated using TypeDoc