prettier --write client/src/components/OAuthDebugCallback.tsx
This commit is contained in:
parent
f2865a36e3
commit
36a30fa3db
1 changed files with 7 additions and 2 deletions
|
|
@ -49,8 +49,13 @@ const OAuthDebugCallback = ({ onConnect }: OAuthCallbackProps) => {
|
|||
if (restoredState && typeof restoredState.resource === "string") {
|
||||
restoredState.resource = new URL(restoredState.resource);
|
||||
}
|
||||
if (restoredState && typeof restoredState.authorizationUrl === "string") {
|
||||
restoredState.authorizationUrl = new URL(restoredState.authorizationUrl);
|
||||
if (
|
||||
restoredState &&
|
||||
typeof restoredState.authorizationUrl === "string"
|
||||
) {
|
||||
restoredState.authorizationUrl = new URL(
|
||||
restoredState.authorizationUrl,
|
||||
);
|
||||
}
|
||||
// Clean up the stored state
|
||||
sessionStorage.removeItem(SESSION_KEYS.AUTH_DEBUGGER_STATE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue