Authentication

Of course, one of the first things a CMS needs is a way for users to authenticate themselves and login. The framework adds a way to do this, by way of an authentication API endpoint. The endpoint is simply "login". If the login attempt is successful, then the returned data will look like the following:

{
    content: 'new token value',
    expiration: 'timestamp'
}

Here's an example: