Open AmoDinho opened 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.
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
So basically to manage users I need to have AuthProps available throughout the App to restrict routes.
https://github.com/zeit/next.js/blob/canary/examples/with-apollo-auth/pages/index.js
https://github.com/zeit/next.js/blob/canary/examples/with-cookie-auth/README.md
https://github.com/iaincollins/nextjs-starter/issues/12
https://github.com/lipp/login-with/blob/master/example/nextjs/with-profile.js#L8