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

Function getAuthReturnPath

packages/webapp/pages/callback.tsx:67–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65};
66
67const getAuthReturnPath = (): string => {
68 const path = window.sessionStorage.getItem(AUTH_RETURN_PATH_KEY);
69 window.sessionStorage.removeItem(AUTH_RETURN_PATH_KEY);
70
71 return path?.startsWith('/') && !path.startsWith('//') ? path : '/onboarding';
72};
73
74function CallbackPage(): ReactElement | null {
75 const { logEvent } = useLogContext();

Callers 1

CallbackPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected