From aa1ea2575abb9611d0d2a64de37399e7bfd10687 Mon Sep 17 00:00:00 2001 From: Brion Date: Thu, 22 Aug 2024 15:52:22 +0530 Subject: [PATCH] Stop the expiry time check in `_validateMethod` for `http` requests --- lib/src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/client.ts b/lib/src/client.ts index 74cb4133..bf3ad019 100755 --- a/lib/src/client.ts +++ b/lib/src/client.ts @@ -510,7 +510,7 @@ export class AsgardeoSPAClient { * @preserve */ public async httpRequest(config: HttpRequestConfig): Promise { - await this._validateMethod(config.attachToken); + await this._validateMethod(false); return this._client?.httpRequest(config); } @@ -563,7 +563,7 @@ export class AsgardeoSPAClient { * @preserve */ public async httpRequestAll(config: HttpRequestConfig[]): Promise { - await this._validateMethod(); + await this._validateMethod(false); return this._client?.httpRequestAll(config); }