user
Generate the user's one-time set of MFA recovery codes.
Changed onCreates a verified recovery_code factor together with a set of single-use codes. The plaintext codes are returned exactly once, in canonical form. Requires an AAL2 session and at least one other verified factor, because recovery codes can never be the user's only second factor. Use POST /factors/recovery-codes/regenerate to rotate an existing set.
post/factors/recovery-codes
Request
- Base URLhttps://abcdefghijklmnopqrst.supabase.co/auth/v1
- URLhttps://abcdefghijklmnopqrst.supabase.co/auth/v1/factors/recovery-codes
- AuthAPI key in header apikey and HTTP bearer
Request body
Response
Recovery codes were generated. Show the codes to the user now; they cannot be retrieved again.
Example response
{
"friendly_name": "Recovery codes",
"total": 10,
"codes": [
"k4m9x7qp2ab8ht3z"
]
}Changes
- info
endpoint added
- info