Skip to content

Commit fa2e6b0

Browse files
jenn-newtonclaude
andcommitted
Fix to properly open in new tab for OAuth
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 650f309 commit fa2e6b0

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

client/src/components/OAuthFlowProgress.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,18 @@ export const OAuthFlowProgress = ({
246246
onClick={() => {
247247
try {
248248
validateRedirectUrl(authState.authorizationUrl!);
249-
window.open(authState.authorizationUrl!, "_blank");
249+
window.open(
250+
authState.authorizationUrl!,
251+
"_blank",
252+
"noopener noreferrer",
253+
);
250254
} catch (error) {
251255
toast({
252256
title: "Invalid URL",
253-
description: error instanceof Error ? error.message : "The authorization URL is not valid",
257+
description:
258+
error instanceof Error
259+
? error.message
260+
: "The authorization URL is not valid",
254261
variant: "destructive",
255262
});
256263
}
@@ -373,7 +380,10 @@ export const OAuthFlowProgress = ({
373380
} catch (error) {
374381
toast({
375382
title: "Invalid URL",
376-
description: error instanceof Error ? error.message : "The authorization URL is not valid",
383+
description:
384+
error instanceof Error
385+
? error.message
386+
: "The authorization URL is not valid",
377387
variant: "destructive",
378388
});
379389
}

0 commit comments

Comments
 (0)