This commit is contained in:
Luiz H. R. Silva 2024-06-04 12:01:01 -03:00
parent af92778e98
commit 2fb80e6683
6 changed files with 89 additions and 4 deletions

View file

@ -2,6 +2,9 @@ import type { tipoResposta } from "~comuns";
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, }: {
@ -11,5 +14,11 @@ export declare const pAutenticacao: {
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
}) => Promise<"valido" | "erro">;
urlAutenticacao: (ambiente: "desenvolvimento" | "producao") => string;
codigoPrefeituraSite: ({ ambiente, post, buscar, }: {
ambiente: "desenvolvimento" | "producao";
post: tipoPostCodigoContaSite;
/** função que conecta com a API */
buscar: (url: string, post: tipoPostCodigoContaSite) => Promise<tipoResposta<string>>;
}) => Promise<"valido" | "erro">;
};
export {};