public async Task <IActionResult> GetToken(TokenRequest request)
        {
            if (IsTokenRequestValid(request))
            {
                return(new JsonResult(await authCodeService.GenerateTokenAsync(request)));
            }

            return(UnprocessableEntity());
        }