Skip to content

1795 auth redirect page #1858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 14, 2025

Conversation

HuanFengYeh
Copy link
Collaborator

Summary

This PR consolidates efforts from both Merritt and Zoey, implementing logic to protect authentication-required pages (e.g. /newsfeed, /edit-profile) using a login page.

When a logged-out user attempts to access an auth-protected page, they are now redirected to Login page.

After successful authentication, users are redirected back to the originally requested page via the redirect query parameter.

Checklist

  • On the frontend, I've made my strings translate-able.
  • If I've added shared components, I've added a storybook story.
  • I've made pages responsive and look good on mobile.

Screenshots

Screenshot 2025-07-23 at 10 58 02 AM

Known issues

Steps to test/reproduce

  1. Ensure you are logged out.
  2. Go to the newsfeed page (/newsfeed).
  3. Confirm that you are redirected to login page
  4. Finish login flow.
  5. Confirm that after authentication you are redirected to the original page.

Copy link

vercel bot commented Jul 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
maple-dev Ready Preview Comment Aug 14, 2025 3:29pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
maple-prod ⬜️ Ignored Aug 14, 2025 3:29pm

@mertbagt
Copy link
Collaborator

🔥 🚀

@mertbagt mertbagt merged commit a5ff6aa into codeforboston:main Aug 14, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants