PureCode Software Interview Question

How do you implement JWT-based authentication in a Node.js application?