Creating JSON Web Token in JavaScript - Jonathan Petitcolas
One of the best way to secure an API is JSON Web Tokens. As understanding a concept passes by experimenting it, here is a post describing how to forge such a token in JavaScript.
jonathan-petitcolas.com