This commit is contained in:
Luiz H. R. Silva 2024-06-04 16:16:53 -03:00
parent aa2892c9fb
commit fed8453f61
13 changed files with 157 additions and 211 deletions

View file

@ -1,24 +0,0 @@
import { type tipoResposta } from "~respostas";
type tipoPostValidarTokem = {
token: string;
};
type tipoPostCodigoContaSite = {
site: string;
};
/** todas as rotas de comunicação com autenticador partem dessa variável */
export declare const pAutenticacao: {
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;
codigoContaSite: ({ ambiente, post, buscar, }: {
ambiente: "desenvolvimento" | "producao";
post: tipoPostCodigoContaSite;
/** função que conecta com a API */
buscar: (url: string, post: tipoPostCodigoContaSite) => Promise<tipoResposta<string>>;
}) => Promise<tipoResposta<string>>;
};
export {};