implementado drive pilão de dados

This commit is contained in:
Luiz H. R. Silva 2024-06-14 12:30:08 -03:00
parent a1e543cfb8
commit daae40f4b2
54 changed files with 1476 additions and 19 deletions

View file

@ -1,6 +1,8 @@
import type { tipoResposta } from "p-respostas"
import { urlAutenticacao } from "./_urlAutenticacao"
type tipoPostValidarTokem = { token: string }
import type { z } from "zod"
import type { zAmbiente } from "../ts/ambiente"
/** faz a validação do token */
export const validarToken = async ({
@ -8,7 +10,7 @@ export const validarToken = async ({
post,
buscar,
}: {
ambiente: "desenvolvimento" | "producao"
ambiente: z.infer<typeof zAmbiente>
post: tipoPostValidarTokem
/** função que conecta com a API */
buscar: (