diff --git a/client/src/lib/auth.ts b/client/src/lib/auth.ts index 0a8d26cfc..b9c941c50 100644 --- a/client/src/lib/auth.ts +++ b/client/src/lib/auth.ts @@ -157,17 +157,10 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider { } saveClientInformation(clientInformation: OAuthClientInformation) { - // Remove client_secret before storing (not needed after initial OAuth flow) - const safeInfo = Object.fromEntries( - Object.entries(clientInformation).filter( - ([key]) => key !== "client_secret", - ), - ) as OAuthClientInformation; - // Save the dynamically registered client information to session storage saveClientInformationToSessionStorage({ serverUrl: this.serverUrl, - clientInformation: safeInfo, + clientInformation, isPreregistered: false, }); }