master: Fixed bug with token request endpoint.