Skip to content

OTP Authentication

One-time password authentication via SMS or email.

Request OTP

curl -X POST http://localhost:8000/api/sso/v1/auth/request-otp \
  -d '{"identifier": "+1234567890", "channel": "sms"}'

Verify OTP

curl -X POST http://localhost:8000/api/sso/v1/auth/verify-otp \
  -d '{"identifier": "+1234567890", "code": "123456"}'

Supported Channels

  • SMS (via Twilio, Kavenegar, etc.)
  • Email
  • Authenticator apps (TOTP - coming soon)