hokaccha / node-jwt-simple

JWT(JSON Web Token) encode and decode module for node.js
MIT License
1.36k stars 136 forks source link

Documentation uses payload when it should be claim #19

Open samholmes opened 9 years ago

samholmes commented 9 years ago

The JWT spec calls this "payload" a "claim". You're documentation should use this convention to not confuse the subject.

MichielDeMey commented 9 years ago

Correct, the body consists of one or multiple claims. However, since - beside the registered claim names - you can add any claim (JSON property) you want, it does make sense to name it 'payload'.

Most JWT packages I've used name it 'payload', some use 'claims'. It's up for discussion.