Skip to content

Commit 5378932

Browse files
authored
Fix URL for staging stack (#7030)
1 parent 4502b00 commit 5378932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/utils/generate-github-auth-url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const generateGitHubAuthUrl = (clientId: string, requestUrl: URL) => {
1010
.replace("https://", "")
1111
.replace("http://", "");
1212
const authUrl = baseUrl
13-
.replace(/(^|\.)staging\.all-hands\.dev$/, ".auth.staging.all-hands.dev")
13+
.replace(/(^|\.)staging\.all-hands\.dev$/, "$1auth.staging.all-hands.dev")
1414
.replace(/(^|\.)app\.all-hands\.dev$/, "auth.app.all-hands.dev");
1515
const scope = "openid email profile";
1616
return `https://${authUrl}/realms/allhands/protocol/openid-connect/auth?client_id=github&response_type=code&redirect_uri=${encodeURIComponent(redirectUri)}&scope=${encodeURIComponent(scope)}`;

0 commit comments

Comments
 (0)