supertokens-node
    Preparing search index...
    Index

    Constructors

    Properties

    init: (config?: TypeInput) => RecipeListFunction = Recipe.init

    Methods

    • Parameters

      • tenantId: string
      • recipeUserId: RecipeUserId
      • OptionaluserContext: Record<string, any>

      Returns Promise<
          | { status: "OK"; wasAlreadyAssociated: boolean }
          | {
              status:
                  | "EMAIL_ALREADY_EXISTS_ERROR"
                  | "UNKNOWN_USER_ID_ERROR"
                  | "PHONE_NUMBER_ALREADY_EXISTS_ERROR"
                  | "THIRD_PARTY_USER_ALREADY_EXISTS_ERROR";
          }
          | { reason: string; status: "ASSOCIATION_NOT_ALLOWED_ERROR" },
      >

    • Parameters

      • tenantId: string
      • Optionalconfig: {
            coreConfig?: { [key: string]: any };
            firstFactors?: null | string[];
            requiredSecondaryFactors?: null | string[];
        }
      • OptionaluserContext: Record<string, any>

      Returns Promise<{ createdNew: boolean; status: "OK" }>

    • Parameters

      • tenantId: string
      • config: ProviderConfig
      • OptionalskipValidation: boolean
      • OptionaluserContext: Record<string, any>

      Returns Promise<{ createdNew: boolean; status: "OK" }>

    • Parameters

      • tenantId: string
      • OptionaluserContext: Record<string, any>

      Returns Promise<{ didExist: boolean; status: "OK" }>

    • Parameters

      • tenantId: string
      • thirdPartyId: string
      • OptionaluserContext: Record<string, any>

      Returns Promise<{ didConfigExist: boolean; status: "OK" }>

    • Parameters

      • tenantId: string
      • recipeUserId: RecipeUserId
      • OptionaluserContext: Record<string, any>

      Returns Promise<{ status: "OK"; wasAssociated: boolean }>

    • Parameters

      • tenantId: string
      • OptionaluserContext: Record<string, any>

      Returns Promise<undefined | { status: "OK" } & TenantConfig>

    • Parameters

      • OptionaluserContext: Record<string, any>

      Returns Promise<{ status: "OK"; tenants: ({ tenantId: string } & TenantConfig)[] }>