@things-factory/auth-base 8.0.86 → 8.0.88

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": "@things-factory/auth-base",
3
- "version": "8.0.86",
3
+ "version": "8.0.88",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -32,10 +32,10 @@
32
32
  "dependencies": {
33
33
  "@simplewebauthn/browser": "^13.0.0",
34
34
  "@simplewebauthn/server": "^13.0.0",
35
- "@things-factory/email-base": "^8.0.86",
36
- "@things-factory/env": "^8.0.64",
37
- "@things-factory/shell": "^8.0.86",
38
- "@things-factory/utils": "^8.0.64",
35
+ "@things-factory/email-base": "^8.0.88",
36
+ "@things-factory/env": "^8.0.88",
37
+ "@things-factory/shell": "^8.0.88",
38
+ "@things-factory/utils": "^8.0.88",
39
39
  "@types/webappsec-credential-management": "^0.6.9",
40
40
  "jsonwebtoken": "^9.0.0",
41
41
  "koa-passport": "^6.0.0",
@@ -46,5 +46,5 @@
46
46
  "passport-jwt": "^4.0.0",
47
47
  "passport-local": "^1.0.0"
48
48
  },
49
- "gitHead": "28e364938d499b32aed41a8c664a8a2957b09b69"
49
+ "gitHead": "e69eac3309063291d4249333288b98e23bd7a293"
50
50
  }
@@ -305,7 +305,7 @@ export class UserMutation {
305
305
 
306
306
  var user: User = await userRepository.findOne({
307
307
  where: { username },
308
- relations: ['domains']
308
+ relations: ['domains', 'roles']
309
309
  })
310
310
 
311
311
  /*
@@ -316,7 +316,7 @@ export class UserMutation {
316
316
  if (!user && /^[^\s@]+@[^\s@]+$/.test(username)) {
317
317
  user = await userRepository.findOne({
318
318
  where: { email: ILike(username) },
319
- relations: ['domains']
319
+ relations: ['domains', 'roles']
320
320
  })
321
321
  }
322
322