better-auth 1.6.24 → 1.6.25
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.
|
@@ -34,6 +34,7 @@ type SolidAuthClient<Option extends BetterAuthClientOptions> = UnionToIntersecti
|
|
|
34
34
|
Session: NonNullable<ClientSession<Option>>;
|
|
35
35
|
};
|
|
36
36
|
$fetch: ClientConfig["$fetch"];
|
|
37
|
+
$store: ClientConfig["$store"];
|
|
37
38
|
$ERROR_CODES: PrettifyDeep<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
|
|
38
39
|
};
|
|
39
40
|
declare function createAuthClient<Option extends BetterAuthClientOptions>(options?: Option | undefined): SolidAuthClient<Option>;
|
|
@@ -7,12 +7,14 @@ function getAtomKey(str) {
|
|
|
7
7
|
return `use${capitalizeFirstLetter(str)}`;
|
|
8
8
|
}
|
|
9
9
|
function createAuthClient(options) {
|
|
10
|
-
const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, atomListeners } = getClientConfig(options);
|
|
10
|
+
const { pluginPathMethods, pluginsActions, pluginsAtoms, $fetch, $store, atomListeners } = getClientConfig(options);
|
|
11
11
|
const resolvedHooks = {};
|
|
12
12
|
for (const [key, value] of Object.entries(pluginsAtoms)) resolvedHooks[getAtomKey(key)] = () => useStore(value);
|
|
13
13
|
return createDynamicPathProxy({
|
|
14
14
|
...pluginsActions,
|
|
15
|
-
...resolvedHooks
|
|
15
|
+
...resolvedHooks,
|
|
16
|
+
$fetch,
|
|
17
|
+
$store
|
|
16
18
|
}, $fetch, pluginPathMethods, pluginsAtoms, atomListeners);
|
|
17
19
|
}
|
|
18
20
|
//#endregion
|
package/dist/package.mjs
CHANGED
|
@@ -72,7 +72,7 @@ const oneTap = (options) => ({
|
|
|
72
72
|
idToken,
|
|
73
73
|
scope: "openid,profile,email"
|
|
74
74
|
},
|
|
75
|
-
disableSignUp: options?.disableSignup
|
|
75
|
+
disableSignUp: options?.disableSignup || googleProvider?.disableSignUp
|
|
76
76
|
});
|
|
77
77
|
if (result.error) throw new APIError("UNAUTHORIZED", { message: result.error });
|
|
78
78
|
await setSessionCookie(ctx, result.data);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.25",
|
|
4
4
|
"description": "The most comprehensive authentication framework for TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -489,13 +489,13 @@
|
|
|
489
489
|
"kysely": "^0.28.17 || ^0.29.0",
|
|
490
490
|
"nanostores": "^1.1.1",
|
|
491
491
|
"zod": "^4.3.6",
|
|
492
|
-
"@better-auth/core": "1.6.
|
|
493
|
-
"@better-auth/drizzle-adapter": "1.6.
|
|
494
|
-
"@better-auth/kysely-adapter": "1.6.
|
|
495
|
-
"@better-auth/memory-adapter": "1.6.
|
|
496
|
-
"@better-auth/mongo-adapter": "1.6.
|
|
497
|
-
"@better-auth/prisma-adapter": "1.6.
|
|
498
|
-
"@better-auth/telemetry": "1.6.
|
|
492
|
+
"@better-auth/core": "1.6.25",
|
|
493
|
+
"@better-auth/drizzle-adapter": "1.6.25",
|
|
494
|
+
"@better-auth/kysely-adapter": "1.6.25",
|
|
495
|
+
"@better-auth/memory-adapter": "1.6.25",
|
|
496
|
+
"@better-auth/mongo-adapter": "1.6.25",
|
|
497
|
+
"@better-auth/prisma-adapter": "1.6.25",
|
|
498
|
+
"@better-auth/telemetry": "1.6.25"
|
|
499
499
|
},
|
|
500
500
|
"devDependencies": {
|
|
501
501
|
"@lynx-js/react": "^0.116.3",
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
"happy-dom": "^20.8.9",
|
|
513
513
|
"listhen": "^1.9.0",
|
|
514
514
|
"msw": "^2.12.10",
|
|
515
|
-
"next": "^16.2.
|
|
515
|
+
"next": "^16.2.11",
|
|
516
516
|
"oauth2-mock-server": "^8.2.2",
|
|
517
517
|
"react": "^19.2.4",
|
|
518
518
|
"react-dom": "^19.2.4",
|