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 fc4aeb3 commit 10b4681Copy full SHA for 10b4681
client/src/components/OAuthDebugCallback.tsx
@@ -46,9 +46,12 @@ const OAuthDebugCallback = ({ onConnect }: OAuthCallbackProps) => {
46
if (storedState) {
47
try {
48
restoredState = JSON.parse(storedState);
49
- if (typeof restoredState.resource === "string") {
+ 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);
54
+ }
55
// Clean up the stored state
56
sessionStorage.removeItem(SESSION_KEYS.AUTH_DEBUGGER_STATE);
57
} catch (e) {
0 commit comments