pimp-my-book / pmb-plus-frontend

PMB Plus' frontends. A marketplace for second hand textbooks. 🛒
https://dgc62rzfmrsbq.cloudfront.net/
0 stars 0 forks source link

Making AuthProps Available #3

Open AmoDinho opened 5 years ago

AmoDinho commented 5 years ago

So basically to manage users I need to have AuthProps available throughout the App to restrict routes.

AmoDinho commented 5 years ago

Okay so I've found a way to make the props available! Just need to review how can encapsulate the function elsewhere.

AmoDinho commented 5 years ago

https://medium.com/@griko/exploring-undocumented-getinitialprops-properties-on-next-js-1265a6abc652

https://github.com/alan2207/nextjs-jwt-authentication

https://github.com/bgold0/nextjs-auth-skeleton

https://github.com/iaincollins/next-auth

https://github.com/ooade/next-apollo-auth

https://github.com/jakelowen/next-apollo-auth0-starter

https://github.com/ozbo1973/cookie-auth-next

https://github.com/tomgobich/nextjs-with-express-apollo-passport-auth