Skip to content

Conversation

@Jaime1108
Copy link
Collaborator

What
Introduces a new SignOut.tsx component for handling user logout and auto refresh nav-bar and redirect the user to login page.
Updates navbar to use the new LogoutButton and refactors authentication/session logic to use server-side session retrieval.
Also replaces router.push with window.location.href for navigation after sign-in since router.refresh() seem to not work for nav-bar component for some reason.

Why
because we need user info to be able to display without extra loading when navigate between pages

Issue solved:
https://linear.app/acmutsa/issue/LRN-37

Introduces a new SignOut.tsx component for handling user logout. Updates navbar to use the new LogoutButton and refactors authentication/session logic to use server-side session retrieval. Also replaces router.push with window.location.href for navigation after sign-in.
Copy link
Collaborator

@adanrsantos adanrsantos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turn into a server component successfully. Great job!

@adanrsantos adanrsantos merged commit 5205921 into main Nov 24, 2025
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.

3 participants