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>); consumeCodePOST
: undefined | ((input
: ({ deviceId
: string; preAuthSessionId
: string; userInputCode
: string } | { linkCode
: string; preAuthSessionId
: string }) & { options
: PasswordlessAPIOptions; session
: SessionContainer | undefined; tenantId
: string; userContext
: UserContext }) => Promise<{ createdNewRecipeUser
: boolean; session
: SessionContainer; status
: "OK"; user
: User } | { failedCodeInputAttemptCount
: number; maximumCodeInputAttempts
: number; status
: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { status
: "RESTART_FLOW_ERROR" } | { reason
: string; status
: "SIGN_IN_UP_NOT_ALLOWED" } | GeneralErrorResponse>); createCodePOST
: undefined | ((input
: ({ email
: string } | { phoneNumber
: string }) & { options
: PasswordlessAPIOptions; session
: SessionContainer | undefined; tenantId
: string; userContext
: UserContext }) => Promise<{ deviceId
: string; flowType
: "USER_INPUT_CODE" | "MAGIC_LINK" | "USER_INPUT_CODE_AND_MAGIC_LINK"; preAuthSessionId
: string; status
: "OK" } | { reason
: string; status
: "SIGN_IN_UP_NOT_ALLOWED" } | GeneralErrorResponse>); passwordlessUserEmailExistsGET
: undefined | ((input
: { email
: string; options
: PasswordlessAPIOptions; tenantId
: string; userContext
: UserContext }) => Promise<{ exists
: boolean; status
: "OK" } | GeneralErrorResponse>); passwordlessUserPhoneNumberExistsGET
: undefined | ((input
: { options
: PasswordlessAPIOptions; phoneNumber
: string; tenantId
: string; userContext
: UserContext }) => Promise<{ exists
: boolean; status
: "OK" } | GeneralErrorResponse>); resendCodePOST
: undefined | ((input
: { deviceId
: string; preAuthSessionId
: string } & { options
: PasswordlessAPIOptions; session
: SessionContainer | undefined; tenantId
: string; userContext
: UserContext }) => Promise<GeneralErrorResponse | { status
: "RESTART_FLOW_ERROR" | "OK" }>); 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
: User } | { status
: "NO_EMAIL_GIVEN_BY_PROVIDER" } | { reason
: string; status
: "SIGN_IN_UP_NOT_ALLOWED" } | GeneralErrorResponse>) }