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

Function handleRedirect

apps/sim/app/(auth)/verify/use-verification.ts:224–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222 setStatus('verified')
223
224 const handleRedirect = async () => {
225 try {
226 await refetchSession()
227 } catch (error) {
228 logger.warn('Failed to refetch session during verification skip:', error)
229 }
230
231 if (isInviteFlow && redirectUrl) {
232 window.location.href = redirectUrl
233 } else {
234 router.push('/workspace')
235 }
236 }
237
238 handleRedirect()
239 }

Callers 1

useVerificationFunction · 0.85

Calls 2

warnMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected