Compare commits

...

1 Commits

Author SHA1 Message Date
Robert Brennan
606676cc00 Update generate-github-auth-url.ts 2025-03-06 15:03:57 -05:00

View File

@@ -12,5 +12,5 @@ export const generateGitHubAuthUrl = (clientId: string, requestUrl: URL) => {
.replace(/(^|\.)app\.all-hands\.dev$/, "auth.app.all-hands.dev")
.replace(/(^|\.)localhost$/, "auth.staging.all-hands.dev");
const scope = "openid email profile";
return `https://${authUrl}/realms/allhands/protocol/openid-connect/auth?client_id=github&response_type=code&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}`;
return `https://${authUrl}/realms/allhands/protocol/openid-connect/auth?client_id=github&state=dummy&response_type=code&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}`;
};