build
This commit is contained in:
parent
43616225e7
commit
7e7fbb6809
17 changed files with 159 additions and 18 deletions
24
dist-require/autenticacao.d.ts
vendored
Normal file
24
dist-require/autenticacao.d.ts
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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<{
|
||||
cod: 200;
|
||||
valor: any;
|
||||
eCerto: true;
|
||||
eErro: false;
|
||||
mensagem: undefined;
|
||||
} | {
|
||||
cod: 400;
|
||||
valor: any;
|
||||
eCerto: false;
|
||||
eErro: true;
|
||||
mensagem: string;
|
||||
}>;
|
||||
}) => Promise<"valido" | "erro">;
|
||||
};
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue