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

Function consumeOAuthReturnContext

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

Source from the content-addressed store, hash-verified

114}
115
116export function consumeOAuthReturnContext(): OAuthReturnContext | null {
117 const ctx = readOAuthReturnContext()
118 if (ctx) {
119 window.sessionStorage.removeItem(OAUTH_RETURN_CONTEXT_KEY)
120 }
121 return ctx
122}

Callers 8

AddConnectorModalFunction · 0.90
ConnectorCardFunction · 0.90
workflow.tsxFile · 0.90
ToolCredentialSelectorFunction · 0.90
CredentialSelectorFunction · 0.90
useOAuthReturnRouterFunction · 0.90

Calls 2

readOAuthReturnContextFunction · 0.85
removeItemMethod · 0.80

Tested by

no test coverage detected