.
This commit is contained in:
parent
ed73c910fc
commit
4f8f53908e
6 changed files with 6 additions and 6 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue