MCPcopy Index your code
hub / github.com/simstudioai/sim / dispatchCredentialUpdate

Function dispatchCredentialUpdate

apps/sim/hooks/use-oauth-return.ts:42–48  ·  view source on GitHub ↗
(ctx: OAuthReturnContext)

Source from the content-addressed store, hash-verified

40}
41
42function dispatchCredentialUpdate(ctx: OAuthReturnContext) {
43 window.dispatchEvent(
44 new CustomEvent(OAUTH_CREDENTIAL_UPDATED_EVENT, {
45 detail: { providerId: ctx.providerId, workspaceId: ctx.workspaceId },
46 })
47 )
48}
49
50/**
51 * Post-OAuth router for the integrations page.

Callers 3

useOAuthReturnRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected