MCPcopy Create free account
hub / github.com/dailydotdev/apps / redirectToApp

Function redirectToApp

packages/shared/src/features/onboarding/lib/utils.ts:78–85  ·  view source on GitHub ↗
(router: NextRouter)

Source from the content-addressed store, hash-verified

76}
77
78export const redirectToApp = async (router: NextRouter) => {
79 const params = new URLSearchParams(window.location.search);
80 const afterAuth = params.get(AFTER_AUTH_PARAM);
81 params.delete(AFTER_AUTH_PARAM);
82 params.delete('id');
83 params.delete('stepId');
84 await router.replace(getPathnameWithQuery(afterAuth || '/', params));
85};

Callers 2

checkForOnboardedUserFunction · 0.90
OnboardingFunction · 0.90

Calls 2

getPathnameWithQueryFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected