We'll use Auth0's Next.js quickstart guide to add authentication to our application. While doing so, we'll create and set all the right keys that we will need, create an auth api route, wrap our application in a UserProvider
component and finally add a login button that uses Auth0's hook they provide.
Too many issues with Fauna. Getting "Server Error TypeError: Cannot read properties of undefined (reading 'getAllProducts')" most times and then restart and works. :-/
Ahh when you change the environment variables in Next.js you have to restart the server. Sorry should have explicitly mentioned that.
Still don't not work. No matter what I try I can't get past the same error. I have the Apollo dev tools installed and can run the same query and get results. Unfortunately I cannot send the screen shot but it seems like some caching issue.
Hey Jason, would you be able to share your code via GitHub. I can take a look
Sure, I just added it here minus the .env.local but I can send it without values if you need it. https://github.com/contd/marketplace-app Thanks!
I figured it out! I forgot to set the AUTH0_SECRET in .env.local which probably messed things up. Once I got it set and started over it all worked!
Awesome, let me know if you need help with anything else. You can also reach out on twitter @HaqueShadid.