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); }