logout works

This commit is contained in:
Roland Schneider
2025-11-14 17:17:42 +01:00
parent d11b0c65e0
commit f1f2fefdab
6 changed files with 36 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ export class UserService {
const hashedRefreshToken = await bcrypt.hash(refreshToken, 10);
await this.usersRepository.update(id, { hashedRefreshToken });
} else {
await this.usersRepository.update(id, { hashedRefreshToken: undefined });
await this.usersRepository.update(id, { hashedRefreshToken: null });
}
}
}