Skip to content

Commit ee39d56

Browse files
committed
chore: fix lint issue
1 parent 1c9b47a commit ee39d56

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

client/src/lib/auth.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ export const clearClientInformationFromSessionStorage = ({
6666
};
6767

6868
export class InspectorOAuthClientProvider implements OAuthClientProvider {
69-
7069
constructor(protected serverUrl: string) {
7170
// Save the server URL to session storage
7271
sessionStorage.setItem(SESSION_KEYS.SERVER_URL, serverUrl);
@@ -89,10 +88,11 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
8988

9089
async clientInformation() {
9190
// Try to get the preregistered client information from session storage first
92-
const preregisteredClientInformation = await getClientInformationFromSessionStorage({
93-
serverUrl: this.serverUrl,
94-
isPreregistered: true,
95-
});
91+
const preregisteredClientInformation =
92+
await getClientInformationFromSessionStorage({
93+
serverUrl: this.serverUrl,
94+
isPreregistered: true,
95+
});
9696

9797
// If no preregistered client information is found, get the dynamically registered client information
9898
return (

client/src/lib/hooks/useConnection.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ import { z } from "zod";
3636
import { ConnectionStatus } from "../constants";
3737
import { Notification, StdErrNotificationSchema } from "../notificationTypes";
3838
import { auth } from "@modelcontextprotocol/sdk/client/auth.js";
39-
import { clearClientInformationFromSessionStorage, InspectorOAuthClientProvider, saveClientInformationToSessionStorage } from "../auth";
39+
import {
40+
clearClientInformationFromSessionStorage,
41+
InspectorOAuthClientProvider,
42+
saveClientInformationToSessionStorage,
43+
} from "../auth";
4044
import packageJson from "../../../package.json";
4145
import {
4246
getMCPProxyAddress,
@@ -297,9 +301,7 @@ export function useConnection({
297301

298302
const handleAuthError = async (error: unknown) => {
299303
if (is401Error(error)) {
300-
const serverAuthProvider = new InspectorOAuthClientProvider(
301-
sseUrl,
302-
);
304+
const serverAuthProvider = new InspectorOAuthClientProvider(sseUrl);
303305

304306
const result = await auth(serverAuthProvider, {
305307
serverUrl: sseUrl,

0 commit comments

Comments
 (0)