Skip to main content
POST
/
auth-verify
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/auth-verify \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "+2348012345678",
  "otp_code": "482910",
  "context": "signup"
}
'
{
  "success": true,
  "status": 200,
  "data": {
    "verified": true,
    "phone": "+2348012345678"
  }
}

Body

application/json
phone
string
required

Valid Nigerian phone number

Pattern: ^(\+234[0-9]{10}|0[0-9]{10})$
Example:

"+2348012345678"

otp_code
string
required
Required string length: 4 - 8
Example:

"482910"

context
enum<string>
required

signup returns verified status; login returns a full session

Available options:
signup,
login

Response

OTP verified

Response shape depends on context — signup returns verified status, login returns a session

success
boolean
Example:

true

status
integer
Example:

200

data
object