Skip to content

Commit 0cdeceb

Browse files
committed
feat: Use Google One Tap specific client IDs
1 parent 066cc05 commit 0cdeceb

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

dotcom-rendering/src/components/GoogleOneTap.importable.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ const getProviders = (stage: StageType): IdentityProviderConfig[] => {
6868
return [
6969
{
7070
configURL: 'https://accounts.google.com/gsi/fedcm.json',
71-
clientId: '774465807556.apps.googleusercontent.com',
71+
clientId:
72+
'774465807556-4d50ur6svcjj90l7fe6i0bnp4t4qhkga.apps.googleusercontent.com',
7273
},
7374
];
7475
case 'CODE':
@@ -78,7 +79,7 @@ const getProviders = (stage: StageType): IdentityProviderConfig[] => {
7879
configURL: 'https://accounts.google.com/gsi/fedcm.json',
7980
// TODO: m.code.dev-theguardian.com is not a supported origin for this Client ID
8081
clientId:
81-
'774465807556-pkevncqpfs9486ms0bo5q1f2g9vhpior.apps.googleusercontent.com',
82+
'774465807556-h24eigcs027mj7sunatfem926c4310jo.apps.googleusercontent.com',
8283
},
8384
];
8485
}

dotcom-rendering/src/components/GoogleOneTap.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ describe('GoogleOneTap', () => {
128128
context: 'continue',
129129
providers: [
130130
{
131-
clientId: '774465807556.apps.googleusercontent.com',
131+
clientId:
132+
'774465807556-4d50ur6svcjj90l7fe6i0bnp4t4qhkga.apps.googleusercontent.com',
132133
configURL: 'https://accounts.google.com/gsi/fedcm.json',
133134
},
134135
],
@@ -159,7 +160,8 @@ describe('GoogleOneTap', () => {
159160
context: 'continue',
160161
providers: [
161162
{
162-
clientId: '774465807556.apps.googleusercontent.com',
163+
clientId:
164+
'774465807556-4d50ur6svcjj90l7fe6i0bnp4t4qhkga.apps.googleusercontent.com',
163165
configURL: 'https://accounts.google.com/gsi/fedcm.json',
164166
},
165167
],

0 commit comments

Comments
 (0)