13 lines
494 B
TypeScript
13 lines
494 B
TypeScript
import type { tipoResposta } from "~comuns";
|
|
type tipoPostValidarTokem = {
|
|
token: string;
|
|
};
|
|
/** todas as rotas de comunicação com autenticador partem dessa variável */
|
|
export declare const pAutenticacao: {
|
|
urlValidarToken: ({ ambiente, post, buscar, }: {
|
|
ambiente: "desenvolvimento" | "producao";
|
|
post: tipoPostValidarTokem;
|
|
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
|
|
}) => Promise<"valido" | "erro">;
|
|
};
|
|
export {};
|