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.
2 parents 16edf53 + 36b9acc commit c5047caCopy full SHA for c5047ca
client/src/lib/auth.ts
@@ -110,10 +110,17 @@ 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(
116
+ ([key]) => key !== "client_secret",
117
+ ),
118
+ ) as OAuthClientInformation;
119
+
120
// Save the dynamically registered client information to session storage
121
saveClientInformationToSessionStorage({
122
serverUrl: this.serverUrl,
- clientInformation,
123
+ clientInformation: safeInfo,
124
isPreregistered: false,
125
});
126
0 commit comments