@mastra/auth 1.1.2-alpha.0 → 1.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @mastra/auth
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed a TypeScript error where auth provider instances (for example `new MastraAuthWorkos()`) could not be assigned to `server.auth` or `studio.auth`, failing with `Property '#private' is missing` (#18682). ([#18796](https://github.com/mastra-ai/mastra/pull/18796))
8
+
9
+ Auth providers are now typed with a new structural `IMastraAuthProvider` interface (exported from `@mastra/core/server` and `@mastra/auth`), so provider packages no longer need a shared class identity with `@mastra/core`. `CompositeAuth` also accepts any `IMastraAuthProvider` implementation. No code changes are required:
10
+
11
+ ```typescript
12
+ import { Mastra } from '@mastra/core';
13
+ import { MastraAuthWorkos } from '@mastra/auth-workos';
14
+
15
+ // Previously failed to compile with TS2322, now works without casts
16
+ export const mastra = new Mastra({
17
+ server: {
18
+ auth: new MastraAuthWorkos(),
19
+ },
20
+ });
21
+ ```
22
+
3
23
  ## 1.1.2-alpha.0
4
24
 
5
25
  ### Patch Changes
@@ -3,7 +3,7 @@ name: mastra-auth
3
3
  description: Documentation for @mastra/auth. Use when working with @mastra/auth APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/auth"
6
- version: "1.1.2-alpha.0"
6
+ version: "1.1.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.2-alpha.0",
2
+ "version": "1.1.2",
3
3
  "package": "@mastra/auth",
4
4
  "exports": {},
5
5
  "modules": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/auth",
3
- "version": "1.1.2-alpha.0",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -38,9 +38,9 @@
38
38
  "tsx": "^4.22.4",
39
39
  "typescript": "^6.0.3",
40
40
  "vitest": "4.1.8",
41
- "@internal/lint": "0.0.110",
42
- "@internal/auth": "0.0.2",
43
- "@internal/types-builder": "0.0.85"
41
+ "@internal/auth": "0.0.3",
42
+ "@internal/lint": "0.0.111",
43
+ "@internal/types-builder": "0.0.86"
44
44
  },
45
45
  "homepage": "https://mastra.ai",
46
46
  "repository": {