Skip to content

Commit 777825b

Browse files
committed
Better log
1 parent 04ca9b6 commit 777825b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/lib/firebase/users.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ export function writeReferralInfo(
5858
*/
5959
export async function webviewGoogleSignin() {
6060

61-
const params = new URLSearchParams({
61+
const params = {
6262
client_id: GOOGLE_CLIENT_ID,
6363
redirect_uri: REDIRECT_URI,
6464
response_type: 'code',
6565
scope: 'openid email profile',
66-
});
66+
}
6767
console.log('params', params)
6868

69-
window.open(`https://accounts.google.com/o/oauth2/v2/auth?${params}`, '_system');
69+
window.open(`https://accounts.google.com/o/oauth2/v2/auth?${new URLSearchParams(params)}`, '_system');
7070
}
7171

7272
export async function firebaseLogin() {

0 commit comments

Comments
 (0)