@lowdefy/server 4.0.0-alpha.24 → 4.0.0-alpha.25
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 +14 -14
- package/pages/api/auth/[...nextauth].js +2 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/server",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.25",
|
|
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.
|
|
46
|
-
"@lowdefy/api": "4.0.0-alpha.
|
|
47
|
-
"@lowdefy/blocks-antd": "4.0.0-alpha.
|
|
48
|
-
"@lowdefy/blocks-basic": "4.0.0-alpha.
|
|
49
|
-
"@lowdefy/blocks-loaders": "4.0.0-alpha.
|
|
50
|
-
"@lowdefy/client": "4.0.0-alpha.
|
|
51
|
-
"@lowdefy/helpers": "4.0.0-alpha.
|
|
52
|
-
"@lowdefy/layout": "4.0.0-alpha.
|
|
53
|
-
"@lowdefy/node-utils": "4.0.0-alpha.
|
|
54
|
-
"@lowdefy/operators-js": "4.0.0-alpha.
|
|
55
|
-
"@lowdefy/plugin-next-auth": "4.0.0-alpha.
|
|
45
|
+
"@lowdefy/actions-core": "4.0.0-alpha.25",
|
|
46
|
+
"@lowdefy/api": "4.0.0-alpha.25",
|
|
47
|
+
"@lowdefy/blocks-antd": "4.0.0-alpha.25",
|
|
48
|
+
"@lowdefy/blocks-basic": "4.0.0-alpha.25",
|
|
49
|
+
"@lowdefy/blocks-loaders": "4.0.0-alpha.25",
|
|
50
|
+
"@lowdefy/client": "4.0.0-alpha.25",
|
|
51
|
+
"@lowdefy/helpers": "4.0.0-alpha.25",
|
|
52
|
+
"@lowdefy/layout": "4.0.0-alpha.25",
|
|
53
|
+
"@lowdefy/node-utils": "4.0.0-alpha.25",
|
|
54
|
+
"@lowdefy/operators-js": "4.0.0-alpha.25",
|
|
55
|
+
"@lowdefy/plugin-next-auth": "4.0.0-alpha.25",
|
|
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.
|
|
64
|
+
"@lowdefy/build": "4.0.0-alpha.25",
|
|
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": "
|
|
75
|
+
"gitHead": "720e5090c9777fc2176517a53e88a3b81fc8c237"
|
|
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({
|