public async Task <IActionResult> GerarToken([FromBody] GeracaoTokenRequest request) { try { return(Ok(await _usuarioApp.GerarToken(request))); } catch (ValidationException valEx) { return(BadRequest(new ErroGenerico { Mensagem = valEx.Message })); } }