Continuing our series on Authentication, Token Authentication is the most well known and commonly used authentication method for API clients. And it's (seriously!) never been easier. You'll need to have read over the Username and Password tutorial already, as this tutorial builds off that.

This tutorial shows to authenticate users with an email/username and password via HTTP Basic Authentication, while using the BasicAuthenticatable protocol provided by Vapor. We'll also discuss how to omit passing back a specific property to one one of our models, such as a password.