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:
parent
650f3090d2
commit
fa2e6b0c40
1 changed files with 13 additions and 3 deletions
|
|
@ -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",
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue