Skip to content

Fix/auth google callback redirect#132

Merged
DeadIndian merged 2 commits into
DeadIndian:mainfrom
KGFCH2:fix/auth-google-callback-redirect
Jun 3, 2026
Merged

Fix/auth google callback redirect#132
DeadIndian merged 2 commits into
DeadIndian:mainfrom
KGFCH2:fix/auth-google-callback-redirect

Conversation

@KGFCH2
Copy link
Copy Markdown
Contributor

@KGFCH2 KGFCH2 commented Jun 2, 2026

Related Issue

Closes #131

Summary

Updates Google OAuth callback redirects to use the configurable frontend URL instead of a hardcoded localhost address.

Changes Made

  • Added CLIENT_URL resolved from process.env.FRONTEND_URL
  • Updated failure redirect and callback success redirect in server/routes/authRoutes.js

Testing

  • Verified backend route compiles
  • Confirmed redirect base can be configured through FRONTEND_URL
  • Ensured no hardcoded localhost remains

Impact

Improves OAuth compatibility across staging and production deployments.

Checklist

  • Code follows project standards
  • Tested locally
  • No unrelated changes included
  • Environment configuration updated

@DeadIndian DeadIndian added good first issue Good for newcomers newbie Level 1 issue for ELUSOC 2026 ELUSOC labels Jun 3, 2026
@DeadIndian DeadIndian merged commit b13eb82 into DeadIndian:main Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ELUSOC good first issue Good for newcomers newbie Level 1 issue for ELUSOC 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants