@lowdefy/server 4.0.0-alpha.24 → 4.0.0-alpha.27

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": "@lowdefy/server",
3
- "version": "4.0.0-alpha.24",
3
+ "version": "4.0.0-alpha.27",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -42,17 +42,17 @@
42
42
  "next": "next"
43
43
  },
44
44
  "dependencies": {
45
- "@lowdefy/actions-core": "4.0.0-alpha.24",
46
- "@lowdefy/api": "4.0.0-alpha.24",
47
- "@lowdefy/blocks-antd": "4.0.0-alpha.24",
48
- "@lowdefy/blocks-basic": "4.0.0-alpha.24",
49
- "@lowdefy/blocks-loaders": "4.0.0-alpha.24",
50
- "@lowdefy/client": "4.0.0-alpha.24",
51
- "@lowdefy/helpers": "4.0.0-alpha.24",
52
- "@lowdefy/layout": "4.0.0-alpha.24",
53
- "@lowdefy/node-utils": "4.0.0-alpha.24",
54
- "@lowdefy/operators-js": "4.0.0-alpha.24",
55
- "@lowdefy/plugin-next-auth": "4.0.0-alpha.24",
45
+ "@lowdefy/actions-core": "4.0.0-alpha.27",
46
+ "@lowdefy/api": "4.0.0-alpha.27",
47
+ "@lowdefy/blocks-antd": "4.0.0-alpha.27",
48
+ "@lowdefy/blocks-basic": "4.0.0-alpha.27",
49
+ "@lowdefy/blocks-loaders": "4.0.0-alpha.27",
50
+ "@lowdefy/client": "4.0.0-alpha.27",
51
+ "@lowdefy/helpers": "4.0.0-alpha.27",
52
+ "@lowdefy/layout": "4.0.0-alpha.27",
53
+ "@lowdefy/node-utils": "4.0.0-alpha.27",
54
+ "@lowdefy/operators-js": "4.0.0-alpha.27",
55
+ "@lowdefy/plugin-next-auth": "4.0.0-alpha.27",
56
56
  "next": "12.1.6",
57
57
  "next-auth": "4.10.3",
58
58
  "process": "0.11.10",
@@ -61,7 +61,7 @@
61
61
  "react-icons": "4.3.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@lowdefy/build": "4.0.0-alpha.24",
64
+ "@lowdefy/build": "4.0.0-alpha.27",
65
65
  "@next/eslint-plugin-next": "12.1.6",
66
66
  "less": "4.1.2",
67
67
  "less-loader": "11.0.0",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "7ae69eeb9a93964e2fb0bf08b7a21bee2636a630"
75
+ "gitHead": "02010edcce0f218c54cdbd08f28a60a08c36edfa"
76
76
  }
@@ -26,15 +26,11 @@ import providers from '../../../build/plugins/auth/providers.js';
26
26
  export const authOptions = getNextAuthConfig(
27
27
  { logger: console }, // TODO: make createApiContext synchronous
28
28
  { authJson, plugins: { adapters, callbacks, events, providers } }
29
- )
29
+ );
30
30
 
31
31
  export default async function auth(req, res) {
32
32
  if (authJson.configured === true) {
33
- return await NextAuth(
34
- req,
35
- res,
36
- authOptions
37
- );
33
+ return await NextAuth(req, res, authOptions);
38
34
  }
39
35
 
40
36
  return res.status(404).json({