Revert "fix: filter out client_secret when storing OAuth client information"

This reverts commit 36b9acc97e.
This commit is contained in:
Paul Carleton 2025-09-24 15:12:52 +01:00
commit b72e3c1233
No known key found for this signature in database

View file

@ -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,
});
}