@lenne.tech/nest-server 11.1.10 → 11.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "11.1.10",
3
+ "version": "11.1.11",
4
4
  "description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
5
5
  "keywords": [
6
6
  "node",
@@ -289,7 +289,12 @@ export class CoreAuthService {
289
289
  if (!deviceId) {
290
290
  deviceId = payload.deviceId;
291
291
  }
292
- user.refreshTokens[deviceId] = { ...data, deviceId, tokenId: payload.tokenId };
292
+ user.refreshTokens[deviceId] = {
293
+ ...data,
294
+ deviceDescription: payload.deviceDescription || data.deviceDescription,
295
+ deviceId,
296
+ tokenId: payload.tokenId,
297
+ };
293
298
  user.tempTokens[deviceId] = { createdAt: new Date().getTime(), deviceId, tokenId: payload.tokenId };
294
299
  await this.userService.update(
295
300
  getStringIds(user),