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

Function setAuthReturnPath

packages/shared/src/features/onboarding/lib/utils.ts:48–58  ·  view source on GitHub ↗
(path?: string)

Source from the content-addressed store, hash-verified

46 * redirect-mode sign in, or an in-app browser). Clears it with no path.
47 */
48export const setAuthReturnPath = (path?: string): void => {
49 try {
50 if (path) {
51 window.sessionStorage.setItem(AUTH_RETURN_PATH_KEY, path);
52 } else {
53 window.sessionStorage.removeItem(AUTH_RETURN_PATH_KEY);
54 }
55 } catch {
56 // The page works without it; only redirect-mode sign in loses its way back.
57 }
58};
59
60export const getCookiesAndHeadersFromRequest = (
61 req: GetServerSidePropsContext['req'],

Callers 2

AgentClaimFunction · 0.90
AccountStepFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected