APIInterface
: { appleRedirectHandlerPOST
: undefined | ((input
: { code
: string; options
: ThirdPartyAPIOptions; state
: string; userContext
: any }) => Promise<void>); authorisationUrlGET
: undefined | ((input
: { options
: ThirdPartyAPIOptions; provider
: TypeProvider; userContext
: any }) => Promise<{ status
: "OK"; url
: string }>); consumeCodePOST
: undefined | ((input
: ({ deviceId
: string; preAuthSessionId
: string; userInputCode
: string } | { linkCode
: string; preAuthSessionId
: string }) & { options
: PasswordlessAPIOptions; userContext
: any }) => Promise<{ createdNewUser
: boolean; session
: SessionContainer; status
: "OK"; user
: User } | { failedCodeInputAttemptCount
: number; maximumCodeInputAttempts
: number; status
: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR" } | { message
: string; status
: "GENERAL_ERROR" } | { status
: "RESTART_FLOW_ERROR" }>); createCodePOST
: undefined | ((input
: ({ email
: string } | { phoneNumber
: string }) & { options
: PasswordlessAPIOptions; userContext
: any }) => Promise<{ deviceId
: string; flowType
: "USER_INPUT_CODE" | "MAGIC_LINK" | "USER_INPUT_CODE_AND_MAGIC_LINK"; preAuthSessionId
: string; status
: "OK" } | { message
: string; status
: "GENERAL_ERROR" }>); passwordlessUserEmailExistsGET
: undefined | ((input
: { email
: string; options
: PasswordlessAPIOptions; userContext
: any }) => Promise<{ exists
: boolean; status
: "OK" }>); passwordlessUserPhoneNumberExistsGET
: undefined | ((input
: { options
: PasswordlessAPIOptions; phoneNumber
: string; userContext
: any }) => Promise<{ exists
: boolean; status
: "OK" }>); resendCodePOST
: undefined | ((input
: { deviceId
: string; preAuthSessionId
: string } & { options
: PasswordlessAPIOptions; userContext
: any }) => Promise<{ message
: string; status
: "GENERAL_ERROR" } | { status
: "RESTART_FLOW_ERROR" | "OK" }>); thirdPartySignInUpPOST
: undefined | ((input
: { authCodeResponse
?: any; clientId
?: string; code
: string; options
: ThirdPartyAPIOptions; provider
: TypeProvider; redirectURI
: string; userContext
: any }) => Promise<{ authCodeResponse
: any; createdNewUser
: boolean; session
: SessionContainer; status
: "OK"; user
: User } | { error
: string; status
: "FIELD_ERROR" } | { status
: "NO_EMAIL_GIVEN_BY_PROVIDER" }>) }