This repository has been archived by the owner on May 15, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(page): redirect login page to Home page if the user is logged in
## what - redirect login page to home page IF the user is logged in ## how - using the function `withSessionSsr` in `src/lib/AuthSession/index.ts` - check if a session cookie from iron-session is set - if it's set, redirect to the home page ## why - no need to display the login page IF the user is already logged in. ## where ## usage
- Loading branch information