Debug para tokens de Alai
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user