.
This commit is contained in:
parent
284484edd5
commit
6d8a9e66b4
27 changed files with 90 additions and 6 deletions
25
dist-import/autenticacao.d.ts
vendored
Normal file
25
dist-import/autenticacao.d.ts
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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 {};
|
||||
//# sourceMappingURL=autenticacao.d.ts.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue