cURL
curl --request POST \ --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/auth-login \ --header 'Content-Type: application/json' \ --data ' { "phone": "+2348012345678", "password": "S3cure!Pass" } '
{ "success": true, "status": 200, "data": { "message": "OTP sent to your phone." } }
Verifies the user’s password then sends a 6-digit OTP to their phone. Call POST /auth-verify with context: login to receive session tokens.
POST /auth-verify
context: login
Valid Nigerian phone number
^(\+234[0-9]{10}|0[0-9]{10})$
"+2348012345678"
8 - 72
"S3cure!Pass"
Password verified — OTP sent
true
200
Show child attributes