Check this Github page to learn how to use JSON Web Token (JWT) to secure your web and/or mobile application.