Skip to main content
POST
/
auth-reset-password
Reset password with OTP
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/auth-reset-password \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "+2348012345678",
  "otp_code": "482910",
  "password": "NewSecurePass1!",
  "confirm_password": "NewSecurePass1!"
}
'
{
  "success": true,
  "status": 200,
  "data": {
    "message": "Password reset successfully."
  }
}

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"

password
string
required
Required string length: 8 - 72
Example:

"S3cure!Pass"

confirm_password
string
required
Required string length: 8 - 72
Example:

"S3cure!Pass"

Response

Password reset successfully

success
boolean
Example:

true

status
integer
Example:

200

data
object