Skip to content

Commit 3ea4b73

Browse files
committed
chore: custom GOT prompt content
1 parent 2576764 commit 3ea4b73

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/theme/Layout/GoogleOneTapInitializer.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ export default function GoogleOneTapInitializer(): ReactNode {
6767
auto_select: config.oneTap.autoSelect,
6868
cancel_on_tap_outside: config.oneTap.closeOnTapOutside,
6969
itp_support: config.oneTap.itpSupport,
70+
// Disable FedCM for prompt.
71+
use_fedcm_for_prompt: false,
72+
// Set context to use, to show "Use xxx" in Google One Tap prompt.
73+
context: 'use',
7074
});
7175

7276
// Show One Tap prompt

src/theme/Layout/global.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type GoogleOneTapInitConfig = {
2222
auto_select?: boolean;
2323
cancel_on_tap_outside?: boolean;
2424
itp_support?: boolean;
25+
use_fedcm_for_prompt?: boolean;
26+
context?: 'use' | 'signin' | 'signup';
2527
};
2628

2729
export {};

0 commit comments

Comments
 (0)