fix: revoke session in shared cache before database to keep replicas consistent

This commit is contained in:
2026-11-01 14:57:41 +03:00
parent e9bc51288b
commit 53035d475f
4 changed files with 64 additions and 25 deletions
+7 -1
View File
@@ -184,7 +184,13 @@ export const OPERATION_EXAMPLES: Record<string, OperationExamples> = {
'DELETE /api/v1/auth/sessions/current': {
responses: {
'401': UNAUTHORIZED,
'503': UNAVAILABLE,
'503': {
...UNAVAILABLE,
cache: example(
'Redis недоступен — отзыв не выполнен, повторите позже',
error('unavailable', 'session cache unavailable'),
),
},
},
},
'GET /api/v1/users/me': {