Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 7.05 KB

File metadata and controls

69 lines (43 loc) · 7.05 KB

@mastra/auth-neon

0.3.0

Minor Changes

Patch Changes

0.3.0-alpha.0

Minor Changes

Patch Changes

0.2.1

Patch Changes

0.2.1-alpha.0

Patch Changes

  • Security remediation for the 2026-06-17 "easy-day-js" supply-chain incident. Patch bump to publish clean versions and move the latest dist-tag forward, superseding the compromised versions that declared the malicious easy-day-js dependency. (#18056)

  • Updated dependencies [77a2351]:

    • @mastra/core@1.43.1-alpha.0

0.2.0

Minor Changes

  • Added Neon Auth adapter for managed authentication with Neon's Better Auth service. (#17864)

    • MastraAuthNeon — JWT verification via JWKS, session cookie verification, email/password sign-in/sign-up for Studio, full ISessionProvider implementation
    • MastraRBACNeon — Role-based access control mapping Neon Auth organization roles (owner/admin/member) to Mastra permissions, with LRU caching

    Usage:

    import { MastraAuthNeon, MastraRBACNeon } from '@mastra/auth-neon';
    
    const mastra = new Mastra({
      server: {
        auth: new MastraAuthNeon({ baseUrl: process.env.NEON_AUTH_BASE_URL }),
        rbac: new MastraRBACNeon({
          roleMapping: { owner: ['*'], admin: ['*'], member: ['agents:read', 'workflows:*'], _default: [] },
        }),
      },
    });

Patch Changes