fix: Disconnecting should clear oauth state

This commit is contained in:
Maxwell Gerber 2025-04-07 15:15:28 -07:00
commit 6a16e7cd24
No known key found for this signature in database
GPG key ID: BB9C1A99266069B0

View file

@ -68,6 +68,12 @@ class InspectorOAuthClientProvider implements OAuthClientProvider {
return verifier;
}
clear() {
sessionStorage.removeItem(SESSION_KEYS.CLIENT_INFORMATION);
sessionStorage.removeItem(SESSION_KEYS.TOKENS);
sessionStorage.removeItem(SESSION_KEYS.CODE_VERIFIER);
}
}
export const authProvider = new InspectorOAuthClientProvider();