Problem
The Google OAuth callback currently redirects to http://localhost:5173, which breaks deployments running on other domains.
Current Behavior
OAuth login flow always sends users back to the hardcoded local frontend URL.
Why This Improvement Is Needed
For production and staging deployments, redirecting to the correct frontend URL is essential for successful authentication.
Proposed Solution
Use process.env.FRONTEND_URL as the redirect base for Google OAuth callback URLs.
Expected Outcome
OAuth works correctly across different deployment environments.
Additional Notes
This is a backend fix for OAuth configuration.
Problem
The Google OAuth callback currently redirects to
http://localhost:5173, which breaks deployments running on other domains.Current Behavior
OAuth login flow always sends users back to the hardcoded local frontend URL.
Why This Improvement Is Needed
For production and staging deployments, redirecting to the correct frontend URL is essential for successful authentication.
Proposed Solution
Use
process.env.FRONTEND_URLas the redirect base for Google OAuth callback URLs.Expected Outcome
OAuth works correctly across different deployment environments.
Additional Notes
This is a backend fix for OAuth configuration.