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
parent
commit
ed11bc64dc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      apps/api/src/services/user/user.service.ts

1
CHANGELOG.md

@ -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

2
apps/api/src/services/user/user.service.ts

@ -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 }

Loading…
Cancel
Save