Commit Graph

21 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
0f07edaa98 Fix: Correct signUp type definition
The signUp function in AuthContextType was expecting only two arguments (email, password) but the RegisterForm component was passing three arguments (email, password, username). This commit updates the AuthContextType definition to match the actual usage in the RegisterForm component, resolving the TypeScript error.
2025-03-15 15:18:01 +00:00
gpt-engineer-app[bot]
3c96a9deac Improve authentication error handling
- Enhance error messages for authentication failures.
2025-03-15 15:16:15 +00:00
gpt-engineer-app[bot]
60adc4ce1f Remove offline mode
The offline mode was removed to focus on resolving connection issues instead of providing a workaround.
2025-03-15 15:06:37 +00:00
gpt-engineer-app[bot]
e52ca26cef Investigate login/register 404 errors
Investigate and address persistent 404 errors occurring during login and registration processes.
2025-03-15 15:01:48 +00:00
gpt-engineer-app[bot]
8b783c741d Fix Supabase Storage API calls
Corrected endpoint paths and authorization headers for Supabase Storage API calls.
2025-03-15 14:57:10 +00:00
gpt-engineer-app[bot]
30d214b367 Refactor signIn and signUp
Refactor signIn.ts and signUp.ts files to improve maintainability.
2025-03-15 13:50:46 +00:00
gpt-engineer-app[bot]
5b73eddd4f Refactor auth.utils.ts
Refactor auth.utils.ts into smaller modules for better organization and maintainability. Split functions into networkUtils.ts, responseUtils.ts, and toastUtils.ts based on their purpose.
2025-03-15 13:48:29 +00:00
gpt-engineer-app[bot]
76f9b3b4df Update error messages
Update error messages to provide more clarity.
2025-03-15 13:27:38 +00:00
gpt-engineer-app[bot]
dc0e94d352 Investigate Supabase connection issues
Investigate the cause of "Unexpected end of JSON input" error despite successful Supabase connection test.
2025-03-15 13:24:11 +00:00
gpt-engineer-app[bot]
5853e5f51b Remove offline mode option
This commit removes the offline mode functionality and focuses on resolving server-side issues.
2025-03-15 13:20:51 +00:00
gpt-engineer-app[bot]
4f8b1c0189 Fix login and registration issues
Addresses issues preventing successful login and registration.
2025-03-15 13:16:19 +00:00
gpt-engineer-app[bot]
068482e8e6 Refactor authActions module
Refactor authActions.ts into smaller files for better maintainability and readability.
2025-03-15 13:08:22 +00:00
gpt-engineer-app[bot]
8931ee4bb6 Fix TS2339 error in useLogin
The property 'user' might not exist on the returned object from signIn.
Handle the case where user is undefined.
2025-03-15 13:07:14 +00:00
gpt-engineer-app[bot]
4bacba4719 Fix login failure after connection
Addresses an issue where login fails with a "Unexpected end of JSON input" error after a successful Supabase connection.
2025-03-15 13:02:55 +00:00
gpt-engineer-app[bot]
66c2240bb2 Address error condition
The code has an error that needs to be addressed.
2025-03-15 12:09:51 +00:00
gpt-engineer-app[bot]
8e1f2de87e Remove demo mode
Removes demo mode to ensure proper Supabase functionality.
2025-03-15 10:20:14 +00:00
gpt-engineer-app[bot]
67f763eefa Update login failure message
Update the message displayed upon login failure.
2025-03-15 07:35:25 +00:00
gpt-engineer-app[bot]
41308a478e Investigate fetch failure
Investigate why fetch requests are failing.
2025-03-15 07:06:29 +00:00
gpt-engineer-app[bot]
d345f7035a Fix sign-up failure handling
The sign-up failure logic was not properly implemented. This commit addresses the issue.
2025-03-15 07:04:34 +00:00
gpt-engineer-app[bot]
0df6b8a8f5 Fix auth action return types
The authActions functions (signIn, signOut, resetPassword) were returning a promise with an object containing an error property. The AuthContextType expected these functions to return a promise that resolves to void. This commit updates the return types of these functions to Promise<void> and adjusts the logic to handle errors appropriately without returning them directly in the promise resolution.
2025-03-15 06:58:52 +00:00
gpt-engineer-app[bot]
fd34c62170 Refactor AuthContext into smaller files
Refactors the AuthContext.tsx file into smaller, more manageable files to improve code organization and maintainability. The functionality remains the same.
2025-03-15 06:57:27 +00:00