Add offline_access scope (#7059)

This commit is contained in:
chuckbutkus 2025-03-03 14:06:08 -05:00 committed by GitHub
parent 3e91899720
commit b1ab4d342e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)}`;
};