Logo Awesome React

Awesome React

I try to do a Login page in Next.js

I create a login page in Next.js that runs a GraphQL mutation to get a jwt token and refresh token. But because Next.js uses server rendering, I was not able to persist the user log in using localStorage. The recommended method for Next.js seems to be using cookies.

Starter code:
client: https://github.com/benawad/hello-world-nextjs/tree/5_register
server: https://github.com/benawad/graphql-express-template/tree/13_nextjs_register_user

Finished code:
client: https://github.com/benawad/hello-world-nextjs/tree/6_login
server: https://github.com/benawad/graphql-express-template/tree/14_nextjs_login

Nodejs GraphQL Server videos: https://www.youtube.com/playlist?list=PLN3n1USn4xlnXfLBuSMFcYM5yei4oxdxB

Next.js videos: https://www.youtube.com/playlist?list=PLN3n1USn4xllTjmWu82o_7ej5vNZlR8BH

----
Video Suggestions:

Trello: https://trello.com/b/mErpLVj7/todo
Join the Trello board: https://trello.com/invite/b/mErpLVj7/99020cac2d3397287640d7d86cb3c09a/todo

----
Follow Me Online Here:

Instagram: http://instagram.com/benawad97
Twitter: https://twitter.com/benawad97