@vonall/auth 0.1.1 → 0.1.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vonall/auth
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - The plugins passed to `createAuth()` and `createAuthClient()` are inferred as tuples, so `authClient.twoFactor`, `authClient.admin` and the MCP plugins' members type-check in a Product.
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
@@ -20,5 +20,5 @@ export type AuthClient<P extends BetterAuthClientPlugin[] = []> = ReturnType<typ
20
20
  baseURL: string;
21
21
  plugins: [...BasePlugins, ...P];
22
22
  }>>;
23
- export declare function createAuthClient<P extends BetterAuthClientPlugin[] = []>({ baseURL, admin, plugins }: CreateAuthClientOptions<P>): AuthClient<P>;
23
+ export declare function createAuthClient<const P extends BetterAuthClientPlugin[] = []>({ baseURL, admin, plugins }: CreateAuthClientOptions<P>): AuthClient<P>;
24
24
  export {};
@@ -83,5 +83,5 @@ export type CreatedAuth<P extends BetterAuthPlugin[] = []> = {
83
83
  google: boolean;
84
84
  };
85
85
  };
86
- export declare function createAuth<P extends BetterAuthPlugin[] = []>(options: CreateAuthOptions<P>): CreatedAuth<P>;
86
+ export declare function createAuth<const P extends BetterAuthPlugin[] = []>(options: CreateAuthOptions<P>): CreatedAuth<P>;
87
87
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonall/auth",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Accounts for a Web App Factory Product: better-auth with the hooks, the protected helpers, Einladungen, Konto, the auth pages and the settings; Admin as an option",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -52,13 +52,15 @@
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@sveltejs/kit": "^3.1.0",
55
- "svelte": "^5.57.2",
56
55
  "drizzle-orm": "^0.45.4",
56
+ "neverthrow": "^8.2.0",
57
57
  "pg": "^8.23.1",
58
- "zod": "^4.6.7",
59
- "neverthrow": "^8.2.0"
58
+ "svelte": "^5.57.2",
59
+ "zod": "^4.6.7"
60
60
  },
61
61
  "devDependencies": {
62
+ "@better-auth/mcp": "^1.7.12",
63
+ "@better-auth/oauth-provider": "^1.7.12",
62
64
  "@sveltejs/kit": "^3.1.0",
63
65
  "@sveltejs/package": "^3.0.1",
64
66
  "@sveltejs/vite-plugin-svelte": "7.3.1",