graphlit-client 1.0.20240418019 → 1.0.20240418020

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 (2) hide show
  1. package/dist/client.js +0 -3
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -67,9 +67,6 @@ class Graphlit {
67
67
  if (!this.jwtSecret) {
68
68
  throw new Error("Graphlit environment JWT secret is required.");
69
69
  }
70
- if (!this.jwtSecret) {
71
- throw new Error("JWT secret is required.");
72
- }
73
70
  const expiration = Math.floor(Date.now() / 1000) + (60 * 60); // one hour from now
74
71
  const payload = {
75
72
  "https://graphlit.io/jwt/claims": Object.assign(Object.assign({ "x-graphlit-organization-id": this.organizationId, "x-graphlit-environment-id": this.environmentId }, (this.ownerId && { "x-graphlit-owner-id": this.ownerId })), { "x-graphlit-role": "Owner" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240418019",
3
+ "version": "1.0.20240418020",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",