Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RecipeInterface

Index

Methods

getOAuthAuthorisationURL

  • getOAuthAuthorisationURL(input: { config: NormalisedConfig; thirdPartyId: string }): Promise<string>

getOAuthState

  • getOAuthState(): undefined | StateObject

redirectToThirdPartyLogin

  • redirectToThirdPartyLogin(input: { config: NormalisedConfig; state?: StateObject; thirdPartyId: string }): Promise<{ status: "OK" | "ERROR" }>
  • Parameters

    • input: { config: NormalisedConfig; state?: StateObject; thirdPartyId: string }
      • config: NormalisedConfig
      • Optional state?: StateObject
      • thirdPartyId: string

    Returns Promise<{ status: "OK" | "ERROR" }>

setOAuthState

  • setOAuthState(state: StateObject): void

signInAndUp

  • signInAndUp(input: { config: NormalisedConfig; thirdPartyId: string }): Promise<{ createdNewUser: boolean; status: "OK"; user: User } | { status: "NO_EMAIL_GIVEN_BY_PROVIDER" | "GENERAL_ERROR" } | { error: string; status: "FIELD_ERROR" }>
  • Parameters

    • input: { config: NormalisedConfig; thirdPartyId: string }
      • config: NormalisedConfig
      • thirdPartyId: string

    Returns Promise<{ createdNewUser: boolean; status: "OK"; user: User } | { status: "NO_EMAIL_GIVEN_BY_PROVIDER" | "GENERAL_ERROR" } | { error: string; status: "FIELD_ERROR" }>

Generated using TypeDoc