Privy enables users to login to your application with SMS or email. With Privy, your application can verify ownership of a user’s email address or phone number to send them notifications, campaigns, and more to keep them activated.
Enable email authentication in the Privy
Dashboard before implementing this feature.
To authenticate your users with a one-time passcode (OTP) sent to their email address, use the useLoginWithEmail hook.
You can optionally pass callbacks into the useLoginWithEmail hook to run custom logic after a successful login or to handle errors that occur during the flow.