How/Why: REST API authorization with JWT in NodeJS
In this article, we’ll delve into how to implement JWT using NodeJS and why I think it’s the best way forward for REST architecture. JWT stands for JSON Web Token and is a standard defined in RFC 7519 for “representing claims to be transferred between two parties.” The token content is written in JSON and added as a payload which is digitally signed for later verification. The reason we sign it is to ensure the integrity token and protect against the manipulation of the custom token claims and payload.
How to use prototyping to make smarter code with NodeJS
In this example, I’ll show you how to add helper methods to your classes with little effort using prototyping. As a bonus approach leaves you with no messes to clean up later. I recently dived back into Node and started writing a portfolio project. I ended up wanting to use file caching for the project but needed to be able to expire the caches, which the file-system-cache project does not support.