Login with OTP
OAuth
Login with OTP
Authenticate an account using an email address and a one-time verification code (OTP).
Overview:
This endpoint completes the email login flow. After receiving a verification code via the Send Code endpoint:
- Provide the same email address and the 6-digit code from the email.
- The code is verified against Privy’s passwordless authentication.
- On success, a JWT auth token and the associated Privy embedded wallet address (
social_wallet) are returned. The token expires in 1 hour and should be included as a Bearer token in subsequent authenticated requests.
POST
Login with OTP
Body
application/json
Response
Authentication successful