From cd4d6ce3e4c4b8b375dd5bb752ebe6776a5e5b0f Mon Sep 17 00:00:00 2001 From: Sh Raj Date: Mon, 1 Apr 2024 14:52:05 +0530 Subject: [PATCH] Login to main account again - Update login.js --- login.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/login.js b/login.js index a6ce464..2813323 100644 --- a/login.js +++ b/login.js @@ -2,9 +2,7 @@ let removeHyphens = (inputString) => inputString.replace(/-/g, ""); // Replace these values with your GitHub OAuth App credentials - // const clientIdWithHyphens = "660-0b070-3dae-a69-caacc"; - const clientIdWithHyphens = "5955889c-b9c61c-4ad72e"; - + const clientIdWithHyphens = "660-0b070-3dae-a69-caacc"; const clientId = removeHyphens(clientIdWithHyphens); const redirectUri = "https://codes20.github.io/"; const scope = "user,gist,repo"; @@ -27,8 +25,7 @@ async function exchangeCodeForToken(authorizationCode) { try { const response = await fetch( - "https://login-articleplanet2.vercel.app/", - // "https://login-codes20.vercel.app/", + "https://login-codes20.vercel.app/", { method: "POST", headers: {