We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16edf53 commit b8f5d2cCopy full SHA for b8f5d2c
client/src/lib/auth.ts
@@ -110,10 +110,15 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
110
}
111
112
saveClientInformation(clientInformation: OAuthClientInformation) {
113
+ // Remove client_secret before storing (not needed after initial OAuth flow)
114
+ const safeInfo = Object.fromEntries(
115
+ Object.entries(clientInformation).filter(([key]) => key !== 'client_secret')
116
+ ) as OAuthClientInformation;
117
+
118
// Save the dynamically registered client information to session storage
119
saveClientInformationToSessionStorage({
120
serverUrl: this.serverUrl,
- clientInformation,
121
+ clientInformation: safeInfo,
122
isPreregistered: false,
123
});
124
0 commit comments