correctly clear scope
This commit is contained in:
parent
40fa6cb27d
commit
eb76696d97
1 changed files with 11 additions and 3 deletions
|
|
@ -122,6 +122,11 @@ export const saveScopeToSessionStorage = (
|
|||
}
|
||||
};
|
||||
|
||||
export const clearScopeFromSessionStorage = (serverUrl: string) => {
|
||||
const key = getServerSpecificKey(SESSION_KEYS.SCOPE, serverUrl);
|
||||
sessionStorage.removeItem(key);
|
||||
};
|
||||
|
||||
export class InspectorOAuthClientProvider implements OAuthClientProvider {
|
||||
constructor(protected serverUrl: string) {
|
||||
// Save the server URL to session storage
|
||||
|
|
@ -243,9 +248,6 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
|
|||
sessionStorage.removeItem(
|
||||
getServerSpecificKey(SESSION_KEYS.CODE_VERIFIER, this.serverUrl),
|
||||
);
|
||||
sessionStorage.removeItem(
|
||||
getServerSpecificKey(SESSION_KEYS.SCOPE, this.serverUrl),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue