With API-only applications so popular and Rails 5 right around the corner, the most common methods of authentication are now becoming token-based. In this tutorial, a short overview of token-based authentication will be given and implemented into a Rails 5 API-only application. Token-based authentication (also known as JSON Web Token authentication) is a new way of handling authentication of users