()
| 90 | export default AuthContext; |
| 91 | |
| 92 | export 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 | |
| 101 | export const REGISTRATION_PATH = '/register'; |
| 102 |