Skip to content

Commit

Permalink
Merge pull request #180 from brionmario/fix-http-request-validation
Browse files Browse the repository at this point in the history
Stop the expiry time check in `_validateMethod` for `http` requests
  • Loading branch information
brionmario authored Aug 22, 2024
2 parents 5fdeba2 + aa1ea25 commit f6f2d1e
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
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit f6f2d1e

Please sign in to comment.