@appconda/nextjs 1.0.85 → 1.0.86
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.
@@ -2,9 +2,17 @@ import CredentialsProvider from "next-auth/providers/credentials";
|
|
2
2
|
import { cookies } from "next/headers";
|
3
3
|
import { getAppcondaClient } from "../getAppcondaClient";
|
4
4
|
import { Account } from "../modules/account/service";
|
5
|
-
import { getEnv } from "../lib/env";
|
5
|
+
//import { getEnv } from "../lib/env";
|
6
6
|
import { getSDKForCurrentUser } from "../getSDKForCurrentUser";
|
7
7
|
import { Query } from "../query";
|
8
|
+
const getEnv = () => {
|
9
|
+
return {
|
10
|
+
APPCONDA_ENDPOINT: 'process.env.APPCONDA_ENDPOINT',
|
11
|
+
APPCONDA_CLIENT_ENDPOINT: 'process.env.APPCONDA_CLIENT_ENDPOINT',
|
12
|
+
_SERVICE_TOKEN: 'process.env._SERVICE_TOKEN',
|
13
|
+
ENTERPRISE_LICENSE_KEY: 'process.env.ENTERPRISE_LICENSE_KEY',
|
14
|
+
};
|
15
|
+
};
|
8
16
|
export async function signIn({ userName, password }) {
|
9
17
|
const adminClient = await getAppcondaClient();
|
10
18
|
const account = new Account(adminClient);
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@appconda/nextjs",
|
3
3
|
"homepage": "https://appconda.io/support",
|
4
4
|
"description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
5
|
-
"version": "1.0.
|
5
|
+
"version": "1.0.86",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
@@ -3,10 +3,18 @@ import CredentialsProvider from "next-auth/providers/credentials";
|
|
3
3
|
import { cookies } from "next/headers";
|
4
4
|
import { getAppcondaClient } from "../getAppcondaClient";
|
5
5
|
import { Account } from "../modules/account/service";
|
6
|
-
import { getEnv } from "../lib/env";
|
6
|
+
//import { getEnv } from "../lib/env";
|
7
7
|
import { getSDKForCurrentUser } from "../getSDKForCurrentUser";
|
8
8
|
import { Query } from "../query";
|
9
9
|
|
10
|
+
const getEnv = () => {
|
11
|
+
return {
|
12
|
+
APPCONDA_ENDPOINT: 'process.env.APPCONDA_ENDPOINT',
|
13
|
+
APPCONDA_CLIENT_ENDPOINT: 'process.env.APPCONDA_CLIENT_ENDPOINT',
|
14
|
+
_SERVICE_TOKEN: 'process.env._SERVICE_TOKEN',
|
15
|
+
ENTERPRISE_LICENSE_KEY: 'process.env.ENTERPRISE_LICENSE_KEY',
|
16
|
+
};
|
17
|
+
};
|
10
18
|
|
11
19
|
export async function signIn({ userName, password }: { userName: string, password: string }) {
|
12
20
|
const adminClient = await getAppcondaClient();
|