MCPcopy
hub / github.com/simstudioai/sim / readOAuthReturnContext

Function readOAuthReturnContext

apps/sim/lib/credentials/client-state.ts:111–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111export function readOAuthReturnContext(): OAuthReturnContext | null {
112 if (typeof window === 'undefined') return null
113 return parseJson<OAuthReturnContext>(window.sessionStorage.getItem(OAUTH_RETURN_CONTEXT_KEY))
114}
115
116export function consumeOAuthReturnContext(): OAuthReturnContext | null {
117 const ctx = readOAuthReturnContext()

Callers 4

useOAuthReturnRouterFunction · 0.90

Calls 2

getItemMethod · 0.80
parseJsonFunction · 0.70

Tested by

no test coverage detected