can we implement custom csrf like let take an example I am using next js and express for api and I want to implement a custom csrf token generator and validator like jwt we can generate and validate. so we donreq the api for csrf token we generate our own with some kind of secret then validate that.

This page summarizes the projects mentioned and recommended in the original post on /r/node

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • csurf

    Discontinued CSRF token middleware

  • it's looking like express/csurf is archived and deprecated (as of 5 hours ago)... ref

    u/Historical-Raisin265, check out express-csrf-double-submit-cookie as a pattern and maybe roll your own.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts