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.
2 parents 7fc3de7 + bb95fcc commit ade237eCopy full SHA for ade237e
client/src/components/OAuthDebugCallback.tsx
@@ -46,6 +46,17 @@ const OAuthDebugCallback = ({ onConnect }: OAuthCallbackProps) => {
46
if (storedState) {
47
try {
48
restoredState = JSON.parse(storedState);
49
+ if (restoredState && typeof restoredState.resource === "string") {
50
+ restoredState.resource = new URL(restoredState.resource);
51
+ }
52
+ if (
53
+ 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);
62
} catch (e) {
0 commit comments