fix(xo-server): auth provider did not wait for token update (#10233)

This commit is contained in:
Mathieu
2026-08-06 15:24:21 +02:00
committed by GitHub
parent 8054d88a88
commit 2e5ec8c9e2
2 changed files with 3 additions and 1 deletions

View File

@@ -19,6 +19,8 @@
> Users must be able to say: "I had this issue, happy to know it's fixed"
- [REST API] Fix `/users/:id/authentication_tokens` sometimes did not return the token used to make the request (PR [#10233](https://github.com/vatesfr/xen-orchestra/pull/10233))
### Packages to release
> When modifying a package, add it here with its release type.

View File

@@ -70,7 +70,7 @@ export default class {
token.last_uses = last_uses
this._tokens.update(token)
await this._tokens.update(token)
return { bypassOtp: true, expiration: token.expiration, userId: token.user_id }
} catch (error) {}