better-auth 1.8.0-beta.0 → 1.8.0-beta.1
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/dist/package.mjs
CHANGED
|
@@ -155,6 +155,18 @@ interface GoogleOneTapActionOptions extends Omit<GoogleOneTapOptions, "clientId"
|
|
|
155
155
|
* Button configuration options
|
|
156
156
|
*/
|
|
157
157
|
config?: GsiButtonConfiguration | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Open the browser's FedCM account chooser when the button is
|
|
160
|
+
* clicked, instead of Google's popup window. `autoSelect` then
|
|
161
|
+
* signs in a returning user without showing the chooser.
|
|
162
|
+
*
|
|
163
|
+
* Applies on Chrome 125+ on desktop and Chrome 128+ on Android.
|
|
164
|
+
* Other browsers keep the popup.
|
|
165
|
+
*
|
|
166
|
+
* @see {@link https://developers.google.com/identity/gsi/web/guides/fedcm-migration}
|
|
167
|
+
* @default false
|
|
168
|
+
*/
|
|
169
|
+
fedCM?: boolean | undefined;
|
|
158
170
|
} | undefined;
|
|
159
171
|
}
|
|
160
172
|
declare const oneTapClient: (options: GoogleOneTapOptions) => {
|
|
@@ -73,6 +73,10 @@ const oneTapClient = (options) => {
|
|
|
73
73
|
ux_mode: opts?.uxMode || "popup",
|
|
74
74
|
nonce: opts?.nonce,
|
|
75
75
|
itp_support: true,
|
|
76
|
+
...opts.button.fedCM && {
|
|
77
|
+
use_fedcm_for_button: true,
|
|
78
|
+
button_auto_select: autoSelect
|
|
79
|
+
},
|
|
76
80
|
...options.additionalOptions
|
|
77
81
|
});
|
|
78
82
|
window.google?.accounts.id.renderButton(container, opts.button.config ?? { type: "icon" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth",
|
|
3
|
-
"version": "1.8.0-beta.
|
|
3
|
+
"version": "1.8.0-beta.1",
|
|
4
4
|
"description": "The most comprehensive authentication framework for TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -503,13 +503,13 @@
|
|
|
503
503
|
"kysely": "^0.28.17 || ^0.29.0",
|
|
504
504
|
"nanostores": "^1.3.0",
|
|
505
505
|
"zod": "^4.5.4",
|
|
506
|
-
"@better-auth/core": "1.8.0-beta.
|
|
507
|
-
"@better-auth/drizzle-adapter": "1.8.0-beta.
|
|
508
|
-
"@better-auth/kysely-adapter": "1.8.0-beta.
|
|
509
|
-
"@better-auth/memory-adapter": "1.8.0-beta.
|
|
510
|
-
"@better-auth/mongo-adapter": "1.8.0-beta.
|
|
511
|
-
"@better-auth/prisma-adapter": "1.8.0-beta.
|
|
512
|
-
"@better-auth/telemetry": "1.8.0-beta.
|
|
506
|
+
"@better-auth/core": "1.8.0-beta.1",
|
|
507
|
+
"@better-auth/drizzle-adapter": "1.8.0-beta.1",
|
|
508
|
+
"@better-auth/kysely-adapter": "1.8.0-beta.1",
|
|
509
|
+
"@better-auth/memory-adapter": "1.8.0-beta.1",
|
|
510
|
+
"@better-auth/mongo-adapter": "1.8.0-beta.1",
|
|
511
|
+
"@better-auth/prisma-adapter": "1.8.0-beta.1",
|
|
512
|
+
"@better-auth/telemetry": "1.8.0-beta.1"
|
|
513
513
|
},
|
|
514
514
|
"devDependencies": {
|
|
515
515
|
"@lynx-js/react": "^0.121.2",
|