@things-factory/auth-base 6.0.90 → 6.0.96

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": "6.0.90",
3
+ "version": "6.0.96",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -29,11 +29,11 @@
29
29
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
30
30
  },
31
31
  "dependencies": {
32
- "@things-factory/email-base": "^6.0.90",
33
- "@things-factory/env": "^6.0.90",
34
- "@things-factory/i18n-base": "^6.0.90",
35
- "@things-factory/shell": "^6.0.90",
36
- "@things-factory/utils": "^6.0.90",
32
+ "@things-factory/email-base": "^6.0.96",
33
+ "@things-factory/env": "^6.0.96",
34
+ "@things-factory/i18n-base": "^6.0.96",
35
+ "@things-factory/shell": "^6.0.96",
36
+ "@things-factory/utils": "^6.0.96",
37
37
  "jsonwebtoken": "^8.5.1",
38
38
  "koa-passport": "^4.1.4",
39
39
  "koa-session": "^6.0.0",
@@ -42,5 +42,5 @@
42
42
  "passport-jwt": "^4.0.0",
43
43
  "passport-local": "^1.0.0"
44
44
  },
45
- "gitHead": "f414cc54d34c91def66b229a9c417b663399c031"
45
+ "gitHead": "a9733ed107c937d32f5aa0af67daca582e93d0c6"
46
46
  }
@@ -2,10 +2,13 @@ import Router from 'koa-router'
2
2
  import passport from 'passport'
3
3
 
4
4
  import { Domain, domainMiddleware } from '@things-factory/shell'
5
+ import { config } from '@things-factory/env'
5
6
 
6
7
  import { User } from '../service/user/user'
7
8
  import { getUserDomains } from '../utils/get-user-domains'
8
9
 
10
+ const PUBLIC_HOME_ROUTE = config.get('publicHomeRoute', '/public/home')
11
+
9
12
  export const siteRootRouter = new Router()
10
13
 
11
14
  async function findAuth(context, next) {
@@ -41,5 +44,5 @@ siteRootRouter.get('/', findAuth, domainMiddleware, async (context, next) => {
41
44
  return
42
45
  }
43
46
 
44
- context.redirect('/public/home')
47
+ context.redirect(PUBLIC_HOME_ROUTE)
45
48
  })