From b1ab4d342e92dd3afb2ef6d4f7ef038ce10a0bce Mon Sep 17 00:00:00 2001 From: chuckbutkus Date: Mon, 3 Mar 2025 14:06:08 -0500 Subject: [PATCH] Add offline_access scope (#7059) --- frontend/src/utils/generate-github-auth-url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/generate-github-auth-url.ts b/frontend/src/utils/generate-github-auth-url.ts index c2e0189240..9c9ad94afb 100644 --- a/frontend/src/utils/generate-github-auth-url.ts +++ b/frontend/src/utils/generate-github-auth-url.ts @@ -10,6 +10,6 @@ export const generateGitHubAuthUrl = (clientId: string, requestUrl: URL) => { .replace(/(^|\.)staging\.all-hands\.dev$/, "$1auth.staging.all-hands.dev") .replace(/(^|\.)app\.all-hands\.dev$/, "auth.app.all-hands.dev") .replace(/(^|\.)localhost$/, "auth.staging.all-hands.dev"); - const scope = "openid email profile"; + const scope = "openid email profile offline_access"; return `https://${authUrl}/realms/allhands/protocol/openid-connect/auth?client_id=github&response_type=code&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}`; };