@mastra/auth-workos 1.5.2 → 1.5.5-alpha.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.
@@ -15,11 +15,12 @@ import type { AuthKitConfig } from '@workos/authkit-session';
15
15
  export declare class WebSessionStorage extends CookieSessionStorage<Request, Response> {
16
16
  constructor(config: AuthKitConfig);
17
17
  /**
18
- * Extract the encrypted session cookie from a Request.
18
+ * Extract a named cookie from a Request.
19
19
  *
20
20
  * @param request - Standard Web Request object
21
- * @returns The encrypted session string or null if not present
21
+ * @param name - Cookie name
22
+ * @returns The decoded cookie value or null if not present
22
23
  */
23
- getSession(request: Request): Promise<string | null>;
24
+ getCookie(request: Request, name: string): Promise<string | null>;
24
25
  }
25
26
  //# sourceMappingURL=session-storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-storage.d.ts","sourceRoot":"","sources":["../src/session-storage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC;gBAChE,MAAM,EAAE,aAAa;IAIjC;;;;;OAKG;IACG,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAqB3D"}
1
+ {"version":3,"file":"session-storage.d.ts","sourceRoot":"","sources":["../src/session-storage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC;gBAChE,MAAM,EAAE,aAAa;IAIjC;;;;;;OAMG;IACG,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAmBxE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/auth-workos",
3
- "version": "1.5.2",
3
+ "version": "1.5.5-alpha.0",
4
4
  "description": "Mastra WorkOS Auth integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,24 +21,24 @@
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
23
  "@workos-inc/node": "8.8.0",
24
- "@workos/authkit-session": "^0.3.4",
24
+ "@workos/authkit-session": "^0.5.0",
25
25
  "lru-cache": "^11.2.7",
26
- "@mastra/auth": "1.0.2"
26
+ "@mastra/auth": "1.0.3-alpha.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@mastra/core": ">=1.32.0-0 <2.0.0-0"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "22.19.15",
33
- "@vitest/coverage-v8": "4.1.5",
34
- "@vitest/ui": "4.1.5",
32
+ "@types/node": "22.19.21",
33
+ "@vitest/coverage-v8": "4.1.8",
34
+ "@vitest/ui": "4.1.8",
35
35
  "eslint": "^10.4.1",
36
36
  "tsup": "^8.5.1",
37
37
  "typescript": "^6.0.3",
38
- "vitest": "4.1.5",
39
- "@internal/lint": "0.0.104",
40
- "@internal/types-builder": "0.0.79",
41
- "@mastra/core": "1.42.0"
38
+ "vitest": "4.1.8",
39
+ "@internal/lint": "0.0.105",
40
+ "@internal/types-builder": "0.0.80",
41
+ "@mastra/core": "1.43.1-alpha.0"
42
42
  },
43
43
  "files": [
44
44
  "dist",