vue-auth3
Version:
<p align="center"> <img src="./docs/public/icon.svg" width="180px"> </p>
1 lines • 757 B
Source Map (JSON)
{"version":3,"sources":["../src/type/drivers/AuthDriver.ts"],"sourcesContent":["import Auth from \"../../Auth\";\r\nimport HttpDriver from \"./HttpDriver\";\r\n\r\ntype OptionRequest = {\r\n data?: Parameters<HttpDriver[\"request\"]>[0][\"data\"];\r\n headers: Required<Parameters<HttpDriver[\"request\"]>[0]>[\"headers\"];\r\n};\r\n\r\ntype AuthDriver = {\r\n tokens?: string[];\r\n request: (auth: Auth, options: OptionRequest, token: string) => OptionRequest;\r\n response: (auth: Auth, response: Awaited<ReturnType<HttpDriver[\"request\"]>>) => string | null;\r\n};\r\n\r\nexport default AuthDriver\r\nexport function defineAuthDriver(opts: AuthDriver) {\r\n return opts\r\n}\r\n"],"mappings":";AAeO,SAAS,iBAAiB,MAAkB;AACjD,SAAO;AACT;","names":[]}