This commit is contained in:
Luiz H. R. Silva 2024-06-04 11:11:32 -03:00
parent d1afd7376f
commit af92778e98
6 changed files with 35 additions and 23 deletions

View file

@ -4,10 +4,12 @@ type tipoPostValidarTokem = {
};
/** todas as rotas de comunicação com autenticador partem dessa variável */
export declare const pAutenticacao: {
urlValidarToken: ({ ambiente, post, buscar, }: {
validarToken: ({ ambiente, post, buscar, }: {
ambiente: "desenvolvimento" | "producao";
post: tipoPostValidarTokem;
/** função que conecta com a API */
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
}) => Promise<"valido" | "erro">;
urlAutenticacao: (ambiente: "desenvolvimento" | "producao") => string;
};
export {};