From 8514e52b05484b7cb25e2d478603ff0f73bfd165 Mon Sep 17 00:00:00 2001 From: Izuchukwu Kevin I Date: Wed, 30 Oct 2024 08:13:45 +0100 Subject: [PATCH] Add redirect_uri to authorization link --- src/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.js b/src/github.js index a891366..7d2b375 100644 --- a/src/github.js +++ b/src/github.js @@ -50,7 +50,7 @@ module.exports = (apiBaseUrl, loginBaseUrl) => { getAuthorizeUrl: (client_id, scope, state, response_type) => `${urls.oauthAuthorize}?client_id=${client_id}&scope=${encodeURIComponent( scope - )}&state=${state}&response_type=${response_type}`, + )}&state=${state}&response_type=${response_type}&redirect_uri=${COGNITO_REDIRECT_URI}`, getUserDetails: (accessToken) => gitHubGet(urls.userDetails, accessToken).then(check), getUserEmails: (accessToken) =>