Skip to content

Commit

Permalink
Login to main account again - Update login.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ committed Apr 1, 2024
1 parent 6e5e4c4 commit cd4d6ce
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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: {
Expand Down

0 comments on commit cd4d6ce

Please sign in to comment.