This commit is contained in:
Luiz H. R. Silva 2024-06-04 22:59:50 -03:00
parent ed73c910fc
commit 4f8f53908e
6 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ const urlAutenticacao = (ambiente) => `${ambiente == "producao"
: "http://localhost:5030"}/autenticacao`;
/** faz a validação do token */
const validarToken = ({ ambiente, post, buscar, }) => __awaiter(void 0, void 0, void 0, function* () {
const url = `${urlAutenticacao(ambiente)}/autenticacao/api/validar_token`;
const url = `${urlAutenticacao(ambiente)}/api/validar_token`;
try {
const resposta = yield buscar(url, post)
.then((resposta) => resposta.eCerto ? "valido" : "erro")