@cloudron/tegel 1.1.7 → 1.2.0

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.
Files changed (3) hide show
  1. package/index.js +4 -2
  2. package/package.json +3 -3
  3. package/src/oidc.js +0 -2
package/index.js CHANGED
@@ -6,7 +6,7 @@ import FileStoreFactory from 'session-file-store';
6
6
  import { lastMile, HttpError } from '@cloudron/connect-lastmile';
7
7
  import * as oidc from './src/oidc.js';
8
8
 
9
- export async function createExpressApp({ oidcConfig, jsonBodySizeLimit = '25mb' }) {
9
+ export async function createExpressApp({ oidcConfig, jsonBodySizeLimit = '25mb', skipLastMile = false }) {
10
10
  await oidc.initOIDC(oidcConfig);
11
11
 
12
12
  const app = express();
@@ -48,7 +48,9 @@ export async function createExpressApp({ oidcConfig, jsonBodySizeLimit = '25mb'
48
48
  router.del = router.delete; // amend router.del for readability further on
49
49
  app.use(router);
50
50
 
51
- app.use(lastMile());
51
+ if (!skipLastMile) {
52
+ app.use(lastMile());
53
+ }
52
54
 
53
55
  return { app, router, express };
54
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudron/tegel",
3
- "version": "1.1.7",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "license": "GPL-2.0",
6
6
  "author": "Cloudron Developers",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@eslint/js": "^10.0.1",
23
- "eslint": "^10.0.0",
24
- "globals": "^17.3.0"
23
+ "eslint": "^10.0.2",
24
+ "globals": "^17.4.0"
25
25
  }
26
26
  }
package/src/oidc.js CHANGED
@@ -88,8 +88,6 @@ export async function handleCallback(req) {
88
88
  );
89
89
  }
90
90
 
91
- console.log(tokens)
92
-
93
91
  // Clean up session OIDC state
94
92
  delete req.session.oidc;
95
93