Skip to content

Commit

Permalink
Stop the expiry time check in _validateMethod for http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Aug 22, 2024
1 parent 5fdeba2 commit aa1ea25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/client.ts
Original file line number Diff line number Diff line change
@@ -510,7 +510,7 @@ export class AsgardeoSPAClient {
* @preserve
*/
public async httpRequest(config: HttpRequestConfig): Promise<HttpResponse | undefined> {
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<HttpResponse[] | undefined> {
await this._validateMethod();
await this._validateMethod(false);

return this._client?.httpRequestAll(config);
}

0 comments on commit aa1ea25

Please sign in to comment.