fix(api): setup 链接在同一事务里消费并建会话,存储故障回 500 且链接仍可重试
This commit is contained in:
13 files changed
+312
-47
No files matched your search
+5
-1
@@ -3359,7 +3359,9 @@ paths:
|
||||
the felis TUI (stored and looked up by SHA-256 hash, like session cookies),
|
||||
mints a host-only felis_session, and returns the remaining setup steps so the
|
||||
SPA can drive the wizard. An unknown, consumed, or expired token returns a
|
||||
uniform 400 setup_token_invalid. Gated on local_auth_enabled.
|
||||
uniform 400 setup_token_invalid. Gated on local_auth_enabled. The token is
|
||||
spent in the same transaction that stores the session, so a redemption that
|
||||
fails with 500 leaves the link working for another try.
|
||||
x-felis-face: [external]
|
||||
x-felis-tier: public
|
||||
security: []
|
||||
@@ -3407,6 +3409,8 @@ paths:
|
||||
schema: { $ref: '#/components/schemas/Error' }
|
||||
'429':
|
||||
$ref: '#/components/responses/RateLimited'
|
||||
'500':
|
||||
$ref: '#/components/responses/InternalError'
|
||||
|
||||
/api/v1/auth/setup/status:
|
||||
get:
|
||||
|
||||
Reference in new issue
Block a user