{"repo":"shahradelahi/next-csrf","free":true,"listed":false,"github":"https://github.com/shahradelahi/next-csrf","clone":"git clone https://github.com/shahradelahi/next-csrf.git","description":"[WIP] CSRF Protection for NextJs","language":"TypeScript","stars":83,"topics":["csrf","csrf-protection","next","nextjs"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"next-csrf A robust CSRF protection library for Next.js. Easily configure, generate, and validate CSRF tokens with flexible options and built-in cookie management. Ensure secure request handling by integrating seamless middleware functions for your Next.js applications. Installation Integration First create a really random string and assign it to the NEXT CSRF SECRET environment variable. Then update your Middleware with the following: Now you are all set! You can test it with following curl commands: Contributing Want to contribute? Awesome! To show your support is to star the project, or to raise issues on GitHub. Thanks again for your support, it is much appreciated! 🙏 License MIT © Shahrad Elahi","default_branch":null,"files":null,"tree":[],"storefront":"/r/shahradelahi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shahradelahi/next-csrf/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."}