@mastra/auth
Advanced tools
+20
-0
| # @mastra/auth | ||
| ## 1.1.2 | ||
| ### Patch Changes | ||
| - 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)) | ||
| 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: | ||
| ```typescript | ||
| import { Mastra } from '@mastra/core'; | ||
| import { MastraAuthWorkos } from '@mastra/auth-workos'; | ||
| // Previously failed to compile with TS2322, now works without casts | ||
| export const mastra = new Mastra({ | ||
| server: { | ||
| auth: new MastraAuthWorkos(), | ||
| }, | ||
| }); | ||
| ``` | ||
| ## 1.1.2-alpha.0 | ||
@@ -4,0 +24,0 @@ |
| { | ||
| "version": "1.1.2-alpha.0", | ||
| "version": "1.1.2", | ||
| "package": "@mastra/auth", | ||
@@ -4,0 +4,0 @@ "exports": {}, |
@@ -6,3 +6,3 @@ --- | ||
| package: "@mastra/auth" | ||
| version: "1.1.2-alpha.0" | ||
| version: "1.1.2" | ||
| --- | ||
@@ -9,0 +9,0 @@ |
+4
-4
| { | ||
| "name": "@mastra/auth", | ||
| "version": "1.1.2-alpha.0", | ||
| "version": "1.1.2", | ||
| "description": "", | ||
@@ -41,5 +41,5 @@ "type": "module", | ||
| "vitest": "4.1.8", | ||
| "@internal/lint": "0.0.110", | ||
| "@internal/auth": "0.0.2", | ||
| "@internal/types-builder": "0.0.85" | ||
| "@internal/auth": "0.0.3", | ||
| "@internal/lint": "0.0.111", | ||
| "@internal/types-builder": "0.0.86" | ||
| }, | ||
@@ -46,0 +46,0 @@ "homepage": "https://mastra.ai", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
247537
0.36%0
-100%