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

Function getQueryParams

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

Source from the content-addressed store, hash-verified

90export default AuthContext;
91
92export const getQueryParams = (): Record<string, string> => {
93 if (typeof window === 'undefined') {
94 return {};
95 }
96
97 const urlSearchParams = new URLSearchParams(window.location.search);
98 return Object.fromEntries(urlSearchParams.entries());
99};
100
101export const REGISTRATION_PATH = '/register';
102

Callers 1

logoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected