Search code examples
javascriptnode.jsjwtexpress-jwt

Which one? Node-jws or node-jsonwebtoken?


There are two packages for JWT application in Node.js .But uses same method for signing and verifying . Which one is for production purpose ?


Solution

  • They're both suitable for use in production. jsonwebtoken uses the jws package for the signing. Which one you use depends on what you want: signatures or tokens.