NextJS server and client side authentication skeleton template for simple JWT tokens
This took me a little while to get right. Thanks to Tim for basically showing me how to do all of this.
If anyone has any suggestions, would love to hear feedback.
To use this you need another server with the following endpoints:
- One that accepts an email/password combo and spits out an authtoken
- One that checks said authtoken and gives you a success or fail response