Email Login
This Allows you to initiate the login process for a user using their email address. It sends a one-time password (OTP) to the provided email for verification.
Parameters
email
(string): The email address of the user attempting to log in.
Returns
verificationToken
(string): A token that will be used in the subsequent verification step.
Example Usage
Here's how you can use the login
function from the SDK:
const email = "user@example.com";
const response = await sdk.auth.email.login(email);