This commit is contained in:
Luiz H. R. Silva 2024-06-04 10:46:39 -03:00
parent 7e7fbb6809
commit 766e4716eb
4 changed files with 7 additions and 43 deletions

View file

@ -1,3 +1,4 @@
import type { tipoResposta } from "~comuns";
type tipoPostValidarTokem = {
token: string;
};
@ -6,19 +7,7 @@ export declare const pAutenticacao: {
urlValidarToken: ({ ambiente, post, buscar, }: {
ambiente: "desenvolvimento" | "producao";
post: tipoPostValidarTokem;
buscar: (url: string, post: tipoPostValidarTokem) => Promise<{
cod: 200;
valor: any;
eCerto: true;
eErro: false;
mensagem: undefined;
} | {
cod: 400;
valor: any;
eCerto: false;
eErro: true;
mensagem: string;
}>;
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
}) => Promise<"valido" | "erro">;
};
export {};