Investigate and address potential causes of login failures in the lovable app, including API request format discrepancies, cached token issues, and network problems.
Refactors the AuthContext.tsx file into smaller, more manageable files to improve code organization and maintainability. The functionality remains the same.