Skip to content
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

fix: session handling and private routes #238

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

atrincas
Copy link
Collaborator

Session Management & Route Protection Updates

Changes

  • Updated private routes to include project detail and edit pages (/projects/[uuid] and /projects/[uuid]/edit)
  • Modified session checker to validate accesstoken globally instead of only on private routes
  • Updated sign-out behavior to redirect only when on private paths

Why

This improves the user experience by maintaining consistent session state across all pages while ensuring proper authentication for protected routes. The sidebar navigation will now correctly reflect the user's login status regardless of which page they're viewing.

Copy link

vercel bot commented Jan 17, 2025

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

Name Status Preview Comments Updated (UTC)
tnc-blue-carbon-cost-tool-ghps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 10:10am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant