@mastra/auth-better-auth 1.0.0-beta.2 → 1.0.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @mastra/auth-better-auth
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add Better Auth authentication provider ([#10658](https://github.com/mastra-ai/mastra/pull/10658))
8
+
9
+ Adds a new authentication provider for Better Auth, a self-hosted, open-source authentication framework.
10
+
11
+ ```typescript
12
+ import { betterAuth } from 'better-auth';
13
+ import { MastraAuthBetterAuth } from '@mastra/auth-better-auth';
14
+ import { Mastra } from '@mastra/core';
15
+
16
+ // Create your Better Auth instance
17
+ const auth = betterAuth({
18
+ database: {
19
+ provider: 'postgresql',
20
+ url: process.env.DATABASE_URL!,
21
+ },
22
+ emailAndPassword: {
23
+ enabled: true,
24
+ },
25
+ });
26
+
27
+ // Create the Mastra auth provider
28
+ const mastraAuth = new MastraAuthBetterAuth({
29
+ auth,
30
+ });
31
+
32
+ // Use with Mastra
33
+ const mastra = new Mastra({
34
+ server: {
35
+ auth: mastraAuth,
36
+ },
37
+ });
38
+ ```
39
+
3
40
  ## 1.0.0-beta.2
4
41
 
5
42
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/auth-better-auth",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0",
4
4
  "description": "Mastra Better Auth integration - self-hosted authentication",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,20 +20,20 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "better-auth": "^1.2.0"
23
+ "better-auth": "^1.4.5"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "22.13.17",
27
- "hono": "^4.7.10",
27
+ "hono": "^4.11.3",
28
28
  "@vitest/coverage-v8": "4.0.12",
29
29
  "@vitest/ui": "4.0.12",
30
30
  "eslint": "^9.37.0",
31
31
  "tsup": "^8.5.0",
32
- "typescript": "^5.8.3",
33
- "vitest": "4.0.12",
34
- "@internal/types-builder": "0.0.28",
35
- "@internal/lint": "0.0.53",
36
- "@mastra/core": "1.0.0-beta.6"
32
+ "typescript": "^5.9.3",
33
+ "vitest": "4.0.16",
34
+ "@internal/lint": "0.0.54",
35
+ "@internal/types-builder": "0.0.29",
36
+ "@mastra/core": "1.0.0"
37
37
  },
38
38
  "files": [
39
39
  "dist",