Browse Source
Task/remove auth devices on access token rotation (#8392)
* Remove auth devices on access token rotation
* Update changelog
pull/8373/head
Thomas Kaul
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
0 deletions
-
CHANGELOG.md
-
apps/api/src/services/user/user.service.ts
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
### Changed |
|
|
### Changed |
|
|
|
|
|
|
|
|
- Improved the content of the pricing page |
|
|
- Improved the content of the pricing page |
|
|
|
|
|
- Disabled the biometric authentication on all devices when generating a new _Security Token_ |
|
|
- Improved the language localization for German (`de`) |
|
|
- Improved the language localization for German (`de`) |
|
|
|
|
|
|
|
|
### Fixed |
|
|
### Fixed |
|
|
|
|
|
@ -708,6 +708,8 @@ export class UserService { |
|
|
userId |
|
|
userId |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
await this.prismaService.authDevice.deleteMany({ where: { userId } }); |
|
|
|
|
|
|
|
|
await this.prismaService.user.update({ |
|
|
await this.prismaService.user.update({ |
|
|
data: { accessToken: hashedAccessToken }, |
|
|
data: { accessToken: hashedAccessToken }, |
|
|
where: { id: userId } |
|
|
where: { id: userId } |
|
|
|