vue-auth3
Version:
<p align="center"> <img src="./docs/public/icon.svg" width="180px"> </p>
1 lines • 862 B
Source Map (JSON)
{"version":3,"sources":["../src/type/drivers/HttpDriver.ts"],"sourcesContent":["import Auth from \"../../Auth\"\n\ntype HttpDriver = {\n request: (options: {\n url: string\n method?: string\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data?: any\n headers?: Record<string, string>\n responseType?: \"arraybuffer\" | \"blob\" | \"json\" | \"text\"\n }) => Promise<{\n headers: Record<string, string>\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: any\n status: number\n statusText: string\n }>\n invalidToken?: (\n auth: Auth,\n response: Awaited<ReturnType<HttpDriver[\"request\"]>>\n ) => boolean\n}\nexport default HttpDriver\nexport function defineHttpDriver(opts: HttpDriver) {\n return opts\n}\n"],"mappings":";AAuBO,SAAS,iBAAiB,MAAkB;AACjD,SAAO;AACT;","names":[]}