public ActionResult <ApiDataResponse <AuthTokenResponse> > RequestToken([FromBody] AuthTokenRequest request) { var(authenticatedSuccessfully, token) = jwtService.IssueToken(request); return(authenticatedSuccessfully ? ApiResponse.ForData( new AuthTokenResponse(token), "Access token issued successfully.") : ApiResponse.ForData( new AuthTokenResponse(), "An invalid or unauthorized Client ID was provided.", StatusCodes.Status401Unauthorized)); }