user
Replace the user's MFA recovery codes with a new set.
Changed onAtomically invalidates all existing codes, issues a fresh set and clears any active verification lockout. The new plaintext codes are returned exactly once. Requires an AAL2 session.
post/factors/recovery-codes/regenerate
Request
- Base URLhttps://abcdefghijklmnopqrst.supabase.co/auth/v1
- URLhttps://abcdefghijklmnopqrst.supabase.co/auth/v1/factors/recovery-codes/regenerate
- AuthAPI key in header apikey and HTTP bearer
Response
Recovery codes were regenerated. Show the codes to the user now; they cannot be retrieved again and the previous codes no longer work.
Example response
{
"friendly_name": "Recovery codes",
"total": 10,
"codes": [
"k4m9x7qp2ab8ht3z"
]
}Changes
- info
endpoint added
- info