user
Verify a recovery code and upgrade the session to AAL2.
Changed onRedeems one single-use recovery code from an AAL1 session. The submitted code is normalized before comparison: whitespace and - separators are removed and letters are lowercased, so K4M9-X7QP-2AB8-HT3Z and k4m9x7qp2ab8ht3z are equivalent. A matched code is consumed and cannot be used again.
post/factors/recovery-codes/verify
Request
- Base URLhttps://abcdefghijklmnopqrst.supabase.co/auth/v1
- URLhttps://abcdefghijklmnopqrst.supabase.co/auth/v1/factors/recovery-codes/verify
- AuthAPI key in header apikey and HTTP bearer
Request body
Example request
{
"code": "K4M9-X7QP-2AB8-HT3Z"
}Response
The recovery code was accepted and consumed. These new credentials have an increased Authenticator Assurance Level (AAL) and an amr claim that includes mfa/recovery_code.
Changes
- info
endpoint added
- info