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 Home page to Login page IF not logged in
## what - Redirect Home page to Login page IF the user is NOT logged in ## how - use function `withAuthSsr` from `src/lib/AuthSession/index.ts` - the function will check if the session cookie from iron-session exists, - if the session cookie doesn't exist, then redirect to Login page - otherwise execute getServerSideProps with the provided context parameters ## why - This will have a mechenisim to protect a page route - the page route will be used to display content from upstream that requires user authentication ## where ## usage
- Loading branch information