This post was originally published at JSON Web Token Tutorial: An Example in Laravel and AngularJS

Authentication is one of the most important parts of any web application. For decades, cookies and server-based authentication was the easiest solution. However, handling authentication in modern Mobile and Single Page Applications can be tricky and demand a better approach. One of the best known solutions to authentication problems for APIs is the JSON Web Token (JWT).

Original source:  

This post was originally published at JSON Web Token Tutorial: An Example in Laravel and AngularJS