convertido para pnpm

This commit is contained in:
Luiz Silva 2025-07-17 10:37:54 -03:00
parent 59e710f6cf
commit 175d767d27
115 changed files with 2366 additions and 1451 deletions

View file

@ -0,0 +1,22 @@
import node_fetch from "cross-fetch";
const validarToken = async ({
url_api_autenticacao,
post
}) => {
const url = `${url_api_autenticacao}/api/validar_token`;
try {
const resposta = await node_fetch(url, {
method: "POST",
body: JSON.stringify(post),
headers: { "Content-Type": "application/json" }
}).then((r) => r.json()).then((r) => r).then(
(resposta2) => resposta2.eCerto ? "valido" : "erro"
).catch(() => "erro");
return resposta;
} catch (_e) {
return "erro";
}
};
export {
validarToken
};