We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2865a3 commit 36a30faCopy full SHA for 36a30fa
client/src/components/OAuthDebugCallback.tsx
@@ -49,8 +49,13 @@ const OAuthDebugCallback = ({ onConnect }: OAuthCallbackProps) => {
49
if (restoredState && typeof restoredState.resource === "string") {
50
restoredState.resource = new URL(restoredState.resource);
51
}
52
- if (restoredState && typeof restoredState.authorizationUrl === "string") {
53
- restoredState.authorizationUrl = new URL(restoredState.authorizationUrl);
+ if (
+ restoredState &&
54
+ typeof restoredState.authorizationUrl === "string"
55
+ ) {
56
+ restoredState.authorizationUrl = new URL(
57
+ restoredState.authorizationUrl,
58
+ );
59
60
// Clean up the stored state
61
sessionStorage.removeItem(SESSION_KEYS.AUTH_DEBUGGER_STATE);
0 commit comments