clearLoginAttemptInfo | (input) => Promise<void> | Clear any information about login attempts from storage | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:312 |
consumeCode | (input) => Promise< | { createdNewRecipeUser: boolean; fetchResponse: Response; status: "OK"; user: User; } | { failedCodeInputAttemptCount: number; fetchResponse: Response; maximumCodeInputAttempts: number; status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR"; } | { fetchResponse: Response; status: "RESTART_FLOW_ERROR"; } | { fetchResponse: Response; reason: string; status: "SIGN_IN_UP_NOT_ALLOWED"; }> | Log the user in using the input code or link code Throws STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR" | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:168 |
createCode | (input) => Promise< | { deviceId: string; fetchResponse: Response; flowType: PasswordlessFlowType; preAuthSessionId: string; status: "OK"; } | { fetchResponse: Response; reason: string; status: "SIGN_IN_UP_NOT_ALLOWED"; }> | Create and send a code to the user for passwordless auth Throws STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR" | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:80 |
doesEmailExist | (input) => Promise<{ doesExist: boolean; fetchResponse: Response; status: "OK"; }> | Check if a user with the given email exists Throws STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR" | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:244 |
doesPhoneNumberExist | (input) => Promise<{ doesExist: boolean; fetchResponse: Response; status: "OK"; }> | Check if a user with the given phone number exists Throws STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR" | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:263 |
getLinkCodeFromURL | (input) => string | Reads and returns the link code from the current URL | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:211 |
getLoginAttemptInfo | <CustomLoginAttemptInfoProperties>(input) => Promise<undefined | object & CustomLoginAttemptInfoProperties> | Get information about the current login attempt from storage | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:280 |
getPreAuthSessionIdFromURL | (input) => string | Reads and returns the pre auth session id from the current URL | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:229 |
getTenantIdFromURL | (input) => string | undefined | Reads and returns the tenant id from the current URL | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:220 |
resendCode | (input) => Promise<{ fetchResponse: Response; status: "OK" | "RESTART_FLOW_ERROR"; }> | Resend the code to the user Throws STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR" | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:128 |
setLoginAttemptInfo | <CustomStateProperties>(input) => Promise<void> | Set information about the current login attempt to storage | tmp/supertokens-web-js/lib/ts/recipe/passwordless/types.ts:296 |