@voltro/plugin-auth-workos 0.87.0 → 0.88.0

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/oauth.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createHash as e, randomBytes as t } from "node:crypto";
2
2
  import { timingSafeStringEqual as n } from "@voltro/protocol/session";
3
- //#region src/oauth.ts
3
+ // src/oauth.ts
4
4
  var r = "https://api.workos.com", i = (e) => e.toString("base64url"), a = () => i(t(32)), o = (t) => i(e("sha256").update(t, "ascii").digest()), s = (e) => {
5
5
  if (!e.clientId) throw Error("workosBeginLogin: `clientId` is required");
6
6
  if (!e.redirectUri) throw Error("workosBeginLogin: `redirectUri` is required");
@@ -101,5 +101,4 @@ var r = "https://api.workos.com", i = (e) => e.toString("base64url"), a = () =>
101
101
  })
102
102
  }));
103
103
  };
104
- //#endregion
105
104
  export { c as WorkosExchangeError, l as WorkosStateMismatchError, p as workosAuthenticateWithCode, h as workosAuthenticateWithMagicAuth, s as workosBeginLogin, f as workosLogoutUrl, m as workosSendMagicAuthCode };
@@ -1,5 +1,5 @@
1
1
  import { WorkosExchangeError as e } from "./oauth.js";
2
- //#region src/organizations.ts
2
+ // src/organizations.ts
3
3
  var t = "https://api.workos.com", n = async (n, r, i, a) => {
4
4
  let o = await (n.fetchImpl ?? fetch)(`${n.apiBase ?? t}${i}`, {
5
5
  method: r,
@@ -82,5 +82,4 @@ var t = "https://api.workos.com", n = async (n, r, i, a) => {
82
82
  state: r.state ?? "pending"
83
83
  };
84
84
  };
85
- //#endregion
86
85
  export { d as workosCreateInvitation, c as workosCreateMembership, i as workosCreateOrganization, u as workosDeleteMembership, a as workosGetOrganization, l as workosListUserMemberships, o as workosUpdateOrganization };
package/dist/strategy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jwtBearerStrategy as e } from "@voltro/protocol/jwt";
2
- //#region src/strategy.ts
2
+ // src/strategy.ts
3
3
  var t = "https://api.workos.com", n = "wos-session", r = (r) => {
4
4
  if (!r.clientId) throw Error("workosStrategy: `clientId` is required");
5
5
  let i = r.scopesFromClaims;
@@ -14,5 +14,4 @@ var t = "https://api.workos.com", n = "wos-session", r = (r) => {
14
14
  ...i === void 0 ? {} : { scopesFromClaims: (e) => i(e) }
15
15
  });
16
16
  };
17
- //#endregion
18
17
  export { r as workosStrategy };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-auth-workos",
3
- "version": "0.87.0",
3
+ "version": "0.88.0",
4
4
  "description": "WorkOS-backed AuthStrategy for the Voltro framework. Verifies WorkOS AuthKit/SSO JWTs via JWKS and maps `org_id`→tenant. Composes via @voltro/protocol AuthStrategy alongside other IdP plugins.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -33,10 +33,10 @@
33
33
  "node": ">=24.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@voltro/protocol": "0.87.0"
36
+ "@voltro/protocol": "0.88.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "effect": "4.0.1"
39
+ "effect": "4.1.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"