share-meals / food-guide-toolkit-website

MIT License
2 stars 0 forks source link

implement authenticated views #29

Closed jonathan-chin closed 2 years ago

jonathan-chin commented 2 years ago

authguards shifted to next development cycle

jonathan-chin commented 2 years ago

it seems NextJS supports this out of the box: https://nextjs.org/docs/authentication

ChelleyD commented 2 years ago

This can be used to setup user authentication: https://next-auth.js.org/

jonathan-chin commented 2 years ago

since NextAuthJS lets us use third party providers, we won't have the traditional login/signup/reset password pages

jonathan-chin commented 2 years ago

working branch at jon-nextjs-nextauthjs

(if we want to implement Email Provider, need to find a solution for adapters. usually, this means setting up middleware like prisma or sequelize. not sure if the labor investment is worth it at this time.)

jonathan-chin commented 2 years ago

39168d7 implemented necessary backend changes to support a custom providers page. still need to implement full designs once available.

jonathan-chin commented 2 years ago

implemented designs for login page. mostly good. things to look out for:

  1. if we add other providers, we might need to lengthen width of buttons. also we'll need to update MUI theme to include the right brand color.
  2. probably want to resize h1 tags in MUI theme.
jonathan-chin commented 2 years ago

jon-nextjs-header-static branch has a solution for accessing static props in components.