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

Function writeOAuthReturnContext

apps/sim/lib/credentials/client-state.ts:106–109  ·  view source on GitHub ↗
(ctx: OAuthReturnContext)

Source from the content-addressed store, hash-verified

104 | OAuthReturnKBConnectors
105
106export function writeOAuthReturnContext(ctx: OAuthReturnContext) {
107 if (typeof window === 'undefined') return
108 window.sessionStorage.setItem(OAUTH_RETURN_CONTEXT_KEY, JSON.stringify(ctx))
109}
110
111export function readOAuthReturnContext(): OAuthReturnContext | null {
112 if (typeof window === 'undefined') return null

Callers 6

handleConnectFunction · 0.90
ConnectorCardFunction · 0.90
handleOpenOAuthConnectFunction · 0.90
ToolCredentialSelectorFunction · 0.90
CredentialSelectorFunction · 0.90
handleReconnectOAuthFunction · 0.90

Calls 1

setItemMethod · 0.80

Tested by

no test coverage detected