@clivly/auth-workos 0.16.0 → 0.17.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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _workos_inc_node = require("@workos-inc/node");
3
- //#region src/map.ts
3
+ // src/map.ts
4
4
  function workosUserToClivlyUser(user) {
5
5
  if (!user.email) return null;
6
6
  const name = [user.firstName, user.lastName].filter(Boolean).join(" ") || void 0;
@@ -20,8 +20,7 @@ function readCookie(req, name) {
20
20
  }
21
21
  return null;
22
22
  }
23
- //#endregion
24
- //#region src/index.ts
23
+ // src/index.ts
25
24
  const DEFAULT_COOKIE_NAME = "wos-session";
26
25
  /**
27
26
  * WorkOS → ClivlyAuthAdapter. Unseals the host app's AuthKit session cookie and
@@ -42,6 +41,5 @@ function createWorkOSAuthAdapter(options) {
42
41
  return workosUserToClivlyUser(result.user);
43
42
  } };
44
43
  }
45
- //#endregion
46
44
  exports.createWorkOSAuthAdapter = createWorkOSAuthAdapter;
47
45
  exports.workosUserToClivlyUser = workosUserToClivlyUser;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ClivlyAuthAdapter, ClivlyUser } from "@clivly/core/auth-adapter";
2
- //#region src/map.d.ts
3
2
  interface WorkOSLikeUser {
4
3
  email: string;
5
4
  firstName?: string | null;
@@ -7,8 +6,6 @@ interface WorkOSLikeUser {
7
6
  lastName?: string | null;
8
7
  }
9
8
  export declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null;
10
- //#endregion
11
- //#region src/index.d.ts
12
9
  export interface WorkOSAuthAdapterOptions {
13
10
  /** WorkOS API key (sk_…). */
14
11
  apiKey: string;
@@ -25,5 +22,4 @@ export interface WorkOSAuthAdapterOptions {
25
22
  * CRM authorization lives in the separate `crm_members` layer.
26
23
  */
27
24
  export declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter;
28
- //#endregion
29
25
  export type { WorkOSLikeUser };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ClivlyAuthAdapter, ClivlyUser } from "@clivly/core/auth-adapter";
2
- //#region src/map.d.ts
3
2
  interface WorkOSLikeUser {
4
3
  email: string;
5
4
  firstName?: string | null;
@@ -7,8 +6,6 @@ interface WorkOSLikeUser {
7
6
  lastName?: string | null;
8
7
  }
9
8
  export declare function workosUserToClivlyUser(user: WorkOSLikeUser): ClivlyUser | null;
10
- //#endregion
11
- //#region src/index.d.ts
12
9
  export interface WorkOSAuthAdapterOptions {
13
10
  /** WorkOS API key (sk_…). */
14
11
  apiKey: string;
@@ -25,5 +22,4 @@ export interface WorkOSAuthAdapterOptions {
25
22
  * CRM authorization lives in the separate `crm_members` layer.
26
23
  */
27
24
  export declare function createWorkOSAuthAdapter(options: WorkOSAuthAdapterOptions): ClivlyAuthAdapter;
28
- //#endregion
29
25
  export type { WorkOSLikeUser };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { WorkOS } from "@workos-inc/node";
2
- //#region src/map.ts
2
+ // src/map.ts
3
3
  function workosUserToClivlyUser(user) {
4
4
  if (!user.email) return null;
5
5
  const name = [user.firstName, user.lastName].filter(Boolean).join(" ") || void 0;
@@ -19,8 +19,7 @@ function readCookie(req, name) {
19
19
  }
20
20
  return null;
21
21
  }
22
- //#endregion
23
- //#region src/index.ts
22
+ // src/index.ts
24
23
  const DEFAULT_COOKIE_NAME = "wos-session";
25
24
  /**
26
25
  * WorkOS → ClivlyAuthAdapter. Unseals the host app's AuthKit session cookie and
@@ -41,5 +40,4 @@ function createWorkOSAuthAdapter(options) {
41
40
  return workosUserToClivlyUser(result.user);
42
41
  } };
43
42
  }
44
- //#endregion
45
43
  export { createWorkOSAuthAdapter, workosUserToClivlyUser };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clivly/auth-workos",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "private": false,
5
5
  "description": "WorkOS implementation of Clivly's ClivlyAuthAdapter.",
6
6
  "license": "MIT",
@@ -23,11 +23,11 @@
23
23
  "README.md"
24
24
  ],
25
25
  "dependencies": {
26
- "@clivly/core": "0.16.0"
26
+ "@clivly/core": "0.17.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@workos-inc/node": "^10.8.0",
30
- "tsdown": "^0.23.0",
29
+ "@workos-inc/node": "^11.0.0",
30
+ "tsdown": "^0.23.2",
31
31
  "typescript": "^6",
32
32
  "vitest": "3.2.7"
33
33
  },