()
| 102 | export default AuthContext; |
| 103 | |
| 104 | export 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 | |
| 113 | export const REGISTRATION_PATH = '/register'; |
| 114 |