🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@mastra/auth

Package Overview
Dependencies
Maintainers
7
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mastra/auth - npm Package Compare versions

Comparing version
1.1.2-alpha.0
to
1.1.2
+20
-0
CHANGELOG.md
# @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 @@

+1
-1
{
"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 @@

{
"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",