APIInterface
: { appleRedirectHandlerPOST
: undefined | ((input
: { formPostInfoFromProvider
: any; options
: ThirdPartyAPIOptions; userContext
: UserContext }) => Promise<void>); authorisationUrlGET
: undefined | ((input
: { options
: ThirdPartyAPIOptions; provider
: TypeProvider; redirectURIOnProviderDashboard
: string; tenantId
: string; userContext
: UserContext }) => Promise<{ pkceCodeVerifier
?: string; status
: "OK"; urlWithQueryParams
: string } | GeneralErrorResponse>); emailPasswordEmailExistsGET
: undefined | ((input
: { email
: string; options
: EmailPasswordAPIOptions; tenantId
: string; userContext
: UserContext }) => Promise<{ exists
: boolean; status
: "OK" } | GeneralErrorResponse>); emailPasswordSignInPOST
: undefined | ((input
: { formFields
: { id
: string; value
: string }[]; options
: EmailPasswordAPIOptions; session
: SessionContainer | undefined; tenantId
: string; userContext
: UserContext }) => Promise<{ session
: SessionContainer; status
: "OK"; user
: GlobalUser } | { reason
: string; status
: "SIGN_IN_NOT_ALLOWED" } | { status
: "WRONG_CREDENTIALS_ERROR" } | GeneralErrorResponse>); emailPasswordSignUpPOST
: undefined | ((input
: { formFields
: { id
: string; value
: string }[]; options
: EmailPasswordAPIOptions; session
: SessionContainer | undefined; tenantId
: string; userContext
: UserContext }) => Promise<{ session
: SessionContainer; status
: "OK"; user
: GlobalUser } | { reason
: string; status
: "SIGN_UP_NOT_ALLOWED" } | { status
: "EMAIL_ALREADY_EXISTS_ERROR" } | GeneralErrorResponse>); generatePasswordResetTokenPOST
: undefined | ((input
: { formFields
: { id
: string; value
: string }[]; options
: EmailPasswordAPIOptions; tenantId
: string; userContext
: UserContext }) => Promise<{ status
: "OK" } | { reason
: string; status
: "PASSWORD_RESET_NOT_ALLOWED" } | GeneralErrorResponse>); passwordResetPOST
: undefined | ((input
: { formFields
: { id
: string; value
: string }[]; options
: EmailPasswordAPIOptions; tenantId
: string; token
: string; userContext
: UserContext }) => Promise<{ email
: string; status
: "OK"; user
: GlobalUser } | { status
: "RESET_PASSWORD_INVALID_TOKEN_ERROR" } | { failureReason
: string; status
: "PASSWORD_POLICY_VIOLATED_ERROR" } | GeneralErrorResponse>); thirdPartySignInUpPOST
: undefined | ((input
: { options
: ThirdPartyAPIOptions; provider
: TypeProvider; session
: SessionContainer | undefined; tenantId
: string; userContext
: UserContext } & ({ redirectURIInfo
: { pkceCodeVerifier
?: string; redirectURIOnProviderDashboard
: string; redirectURIQueryParams
: any } } | { oAuthTokens
: {} })) => Promise<{ createdNewRecipeUser
: boolean; oAuthTokens
: {}; rawUserInfoFromProvider
: { fromIdTokenPayload
?: {}; fromUserInfoAPI
?: {} }; session
: SessionContainer; status
: "OK"; user
: GlobalUser } | { status
: "NO_EMAIL_GIVEN_BY_PROVIDER" } | { reason
: string; status
: "SIGN_IN_UP_NOT_ALLOWED" } | GeneralErrorResponse>) }