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

Function getQueryParams

packages/shared/src/contexts/AuthContext.tsx:104–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102export default AuthContext;
103
104export const getQueryParams = (): Record<string, string> => {
105 if (typeof window === 'undefined') {
106 return {};
107 }
108
109 const urlSearchParams = new URLSearchParams(window.location.search);
110 return Object.fromEntries(urlSearchParams.entries());
111};
112
113export const REGISTRATION_PATH = '/register';
114

Callers 1

logoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected