Task
Add phone confirmation to SaaS: registration, login, team invite, password reset.
Flows
Registration / login
- The user enters a phone.
- The backend calls
/otp/send. - The user enters the code.
/otp/verify→ you create a session.
Invite
- The owner invites by phone/link; OTP confirms the number is live before granting a role.
Password reset
- OTP as a second factor after a reset request; do not expose the key on the client.
Channels and price
- WhatsApp / Telegram — usually 1 token (cheaper for frequent logins).
- SMS — 16 tokens, fallback channel.
- Packages and base: /pricing.
TTL and resend: /faq/ttl-koda, /faq/mozhno-li-povtorno-otpravit. Technical breakdown: /use-cases/developers, guide /docs.