-
Notifications
You must be signed in to change notification settings - Fork 2
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
Setup/frontend user identity #100
Conversation
Deploy preview for irvinehacks-site-2024-sanity ready!
|
Deploy preview for irvinehacks-site-2024 ready!
|
17a5f6a
to
4883662
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding a way to make this work. Approving to unblock, we can revisit later if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgmt
* setup: get user identity utility * feat: integrate user identity with navbar * fix: formatting * fix: remove duplicate Identity declaration * fix: disable prefetch for logout route * feat: logout rewrite * feat: server side redirect for logout * fix: restore logout next rewrite * fix: prefetch on login route * replace next link with a tag * fix: redirect instead of rewrite * fix: remove redirect caching * fix: replace next/link with * fix: error handling for identity fetch * fix: logout page with redirect * fix: use redirect next/navigation
Address #91. Set up a utility function to get the user's identity and use prop drilling like what we did with Sanity requests to send the identity as a prop to the navbar component since the navbar is a client component.