{"repo":"lauriskuznecovs/next-js-jwt","free":true,"listed":false,"github":"https://github.com/lauriskuznecovs/next-js-jwt","clone":"git clone https://github.com/lauriskuznecovs/next-js-jwt.git","description":"Next.js and Express JWT authentication","language":"JavaScript","stars":161,"topics":["nextjs","nodejs","express","jwt-authentication","jwt","javascript","npm","mongodb"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Next.js and Express JWT authentication Introduction This repo hold both - server and client apps for fully functional example of JWT authentication. - Server - based on Express and MongoDB as data storage, but can be replaced to any custom data storage. - Client - based on Next.js. Workflow 1. Run MongoDB, Server and Client. 1. Register user (described in backend directory). 2. Enter enter email/password in client app, press submit. 3. App sends request to server for user authentication. SUCCESS - responds with token which is stored in cookie. FAILURE - respond with particular HTTP code (no user data specified or wrong auth data provided). 4. By navigating between pages client app sends request to server with token to validation.","default_branch":null,"files":null,"tree":[],"storefront":"/r/lauriskuznecovs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lauriskuznecovs/next-js-jwt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}