docs(auth): say that credentials from before a deletion answer 401

The deletion revokes every session, refresh token and API token, so they
answer like any revoked credential; only new sign-ins get the 403
auth.account.deletion_pending, through the shared login response.
This commit is contained in:
Marc-André Bombeck committed 2026-10-25 15:21:10 +01:00
1 parent 9db5e755e6
commit 1b39d93a8a
3 files changed
+10 -7

No files matched your search

+4 -2
View File
@@ -2211,8 +2211,10 @@ paths:
Also 403 `auth.account.deletion_pending`, after the password was proved and before a second factor is asked
for: the account is pending deletion and locked. `meta.purgeAt` is when it is erased; an admin can undo the
deletion until then. Every other sign-in surface (passkey, second-factor completion, refresh, the native
token exchanges) refuses with the same code.
deletion until then. Every other sign-in surface (passkey, second-factor completion, the native token
exchanges) refuses with the same code. A session, refresh token or API token issued before the deletion is
revoked by it, so those answer 401 (`auth.refresh.revoked` on refresh), the same as for a signed-out
session.
content:
application/json:
schema: