graphlit-client 1.0.20250611004 → 1.0.20250611005
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/dist/client.js +2 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
@@ -4,7 +4,7 @@ const require = createRequire(import.meta.url);
|
|
4
4
|
const apolloCore = require("@apollo/client/core/core.cjs");
|
5
5
|
export const { ApolloClient, InMemoryCache, createHttpLink, ApolloLink, ApolloError, // runtime value
|
6
6
|
} = apolloCore;
|
7
|
-
import
|
7
|
+
import { sign } from "jsonwebtoken";
|
8
8
|
import * as Types from "./generated/graphql-types.js";
|
9
9
|
import * as Documents from "./generated/graphql-documents.js";
|
10
10
|
import * as dotenv from "dotenv";
|
@@ -184,7 +184,7 @@ class Graphlit {
|
|
184
184
|
iss: "graphlit",
|
185
185
|
aud: "https://portal.graphlit.io",
|
186
186
|
};
|
187
|
-
this.token =
|
187
|
+
this.token = sign(payload, this.jwtSecret, { algorithm: "HS256" });
|
188
188
|
}
|
189
189
|
async getProject() {
|
190
190
|
return this.queryAndCheckError(Documents.GetProject, {});
|