Skip to content

[Bug]: Google OAuth callback redirect is hardcoded to localhost #131

@KGFCH2

Description

@KGFCH2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions