Debug para tokens de Alai

This commit is contained in:
2026-05-04 13:39:54 +02:00
parent 331d920379
commit 113d9f3786
19 changed files with 272 additions and 45 deletions

View File

@@ -1,5 +1,6 @@
import axios, { AxiosInstance } from "axios"
import { IJWTService, JWTToken } from "../domain/JWT.js"
import https from "https"
// Cambiar por IJWRGeneralService
@@ -20,11 +21,14 @@ export class HttpClient {
constructor(args: {
baseURL: string,
headers: Record<string, string>,
jwtManager: JWTProvider<{}> // todo: asociar el tipo de token,
jwtService?: IJWTService<any>
jwtManager: JWTProvider<{}>, // todo: asociar el tipo de token
jwtService?: IJWTService<any>,
httpsAgent: https.Agent
}) {
this.client = axios.create({
...args
baseURL: args.baseURL,
headers: args.headers,
httpsAgent: args.httpsAgent
})
this.jwtManager = args.jwtManager