Problem
Currently, all protected routes rely on JWT verification for user authentication. It does not handle the scenario where a user signs up or logs in using Google (Firebase). As a result, users authenticated via Google can bypass the JWT verification or face issues accessing protected routes.
Solution:
- Implement a unified authentication system that supports both JWT-based sessions and Firebase tokens.