Skip to content

Latest commit

 

History

History
175 lines (116 loc) · 18.5 KB

File metadata and controls

175 lines (116 loc) · 18.5 KB

@mastra/auth-better-auth

1.1.0

Minor Changes

Patch Changes

1.1.0-alpha.0

Minor Changes

Patch Changes

1.0.4

Patch Changes

1.0.4-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

1.0.3

Patch Changes

  • Removed Hono from @mastra/core and auth package runtime dependencies. Auth providers now receive framework-agnostic request types that support standard Request objects and Hono-compatible request shapes. MCP and deployer avoid relying on core-bundled Hono context types at package boundaries. (#17410)

  • Updated dependencies [c973db4, 552285e, 77e686c, ece8dba, e751af2, e2a8380, be3f1cd, a34d9db]:

    • @mastra/core@1.39.0

1.0.3-alpha.0

Patch Changes

  • Removed Hono from @mastra/core and auth package runtime dependencies. Auth providers now receive framework-agnostic request types that support standard Request objects and Hono-compatible request shapes. MCP and deployer avoid relying on core-bundled Hono context types at package boundaries. (#17410)

  • Updated dependencies [c973db4, 552285e, 77e686c, ece8dba, e751af2, e2a8380, be3f1cd, a34d9db]:

    • @mastra/core@1.39.0-alpha.0

1.0.2

Patch Changes

1.0.2-alpha.0

Patch Changes

1.0.1

Patch Changes

1.0.1-alpha.0

Patch Changes

1.0.0

Minor Changes

  • Add Better Auth authentication provider (#10658)

    Adds a new authentication provider for Better Auth, a self-hosted, open-source authentication framework.

    import { betterAuth } from 'better-auth';
    import { MastraAuthBetterAuth } from '@mastra/auth-better-auth';
    import { Mastra } from '@mastra/core';
    
    // Create your Better Auth instance
    const auth = betterAuth({
      database: {
        provider: 'postgresql',
        url: process.env.DATABASE_URL!,
      },
      emailAndPassword: {
        enabled: true,
      },
    });
    
    // Create the Mastra auth provider
    const mastraAuth = new MastraAuthBetterAuth({
      auth,
    });
    
    // Use with Mastra
    const mastra = new Mastra({
      server: {
        auth: mastraAuth,
      },
    });

1.0.0-beta.2

Minor Changes

  • Add Better Auth authentication provider (#10658)

    Adds a new authentication provider for Better Auth, a self-hosted, open-source authentication framework.

    import { betterAuth } from 'better-auth';
    import { MastraAuthBetterAuth } from '@mastra/auth-better-auth';
    import { Mastra } from '@mastra/core';
    
    // Create your Better Auth instance
    const auth = betterAuth({
      database: {
        provider: 'postgresql',
        url: process.env.DATABASE_URL!,
      },
      emailAndPassword: {
        enabled: true,
      },
    });
    
    // Create the Mastra auth provider
    const mastraAuth = new MastraAuthBetterAuth({
      auth,
    });
    
    // Use with Mastra
    const mastra = new Mastra({
      server: {
        auth: mastraAuth,
      },
    });

1.0.0-beta.1

Major Changes

  • Initial release of Better Auth integration for Mastra
  • Self-hosted authentication provider using Better Auth
  • Support for session-based authentication
  • Custom authorization logic support
  • Route configuration for public/protected paths