MCPcopy Create free account
hub / github.com/simstudioai/sim / getCallbackUrl

Function getCallbackUrl

apps/sim/app/invite/[id]/invite.tsx:266–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264 }
265
266 const getCallbackUrl = () => {
267 const effectiveToken =
268 token || sessionStorage.getItem(inviteTokenStorageKey) || searchParams.get('token')
269 return `/invite/${inviteId}${effectiveToken ? `?token=${effectiveToken}` : ''}`
270 }
271
272 if (!session?.user && !isPending) {
273 const callbackUrl = encodeURIComponent(getCallbackUrl())

Callers 1

InviteFunction · 0.70

Calls 2

getItemMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected