Fix to properly open in new tab for OAuth

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jenn Newton 2025-08-21 15:31:53 +00:00
commit fa2e6b0c40
No known key found for this signature in database

View file

@ -246,11 +246,18 @@ export const OAuthFlowProgress = ({
onClick={() => {
try {
validateRedirectUrl(authState.authorizationUrl!);
window.open(authState.authorizationUrl!, "_blank");
window.open(
authState.authorizationUrl!,
"_blank",
"noopener noreferrer",
);
} catch (error) {
toast({
title: "Invalid URL",
description: error instanceof Error ? error.message : "The authorization URL is not valid",
description:
error instanceof Error
? error.message
: "The authorization URL is not valid",
variant: "destructive",
});
}
@ -373,7 +380,10 @@ export const OAuthFlowProgress = ({
} catch (error) {
toast({
title: "Invalid URL",
description: error instanceof Error ? error.message : "The authorization URL is not valid",
description:
error instanceof Error
? error.message
: "The authorization URL is not valid",
variant: "destructive",
});
}