MCPcopy Create free account
hub / github.com/modelcontextprotocol/inspector / getScopeFromSessionStorage

Function getScopeFromSessionStorage

client/src/lib/auth.ts:107–113  ·  view source on GitHub ↗
(
  serverUrl: string,
)

Source from the content-addressed store, hash-verified

105};
106
107export const getScopeFromSessionStorage = (
108 serverUrl: string,
109): string | undefined => {
110 const key = getServerSpecificKey(SESSION_KEYS.SCOPE, serverUrl);
111 const value = sessionStorage.getItem(key);
112 return value || undefined;
113};
114
115export const saveScopeToSessionStorage = (
116 serverUrl: string,

Callers 1

scopeMethod · 0.85

Calls 1

getServerSpecificKeyFunction · 0.90

Tested by

no test coverage detected