chore: check for external request
This commit is contained in:
@@ -114,11 +114,11 @@ export class HttpService implements HttpServiceInterface {
|
|||||||
|
|
||||||
const response = await this.runRequest<T>(request, this.createRequestBody(httpRequest))
|
const response = await this.runRequest<T>(request, this.createRequestBody(httpRequest))
|
||||||
|
|
||||||
if (response.meta) {
|
if (response.meta && !httpRequest.external) {
|
||||||
this.updateMetaCallback?.(response.meta)
|
this.updateMetaCallback?.(response.meta)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.status === HttpStatusCode.ExpiredAccessToken && !isRefreshRequest) {
|
if (response.status === HttpStatusCode.ExpiredAccessToken && !isRefreshRequest && !httpRequest.external) {
|
||||||
if (this.inProgressRefreshSessionPromise) {
|
if (this.inProgressRefreshSessionPromise) {
|
||||||
await this.inProgressRefreshSessionPromise
|
await this.inProgressRefreshSessionPromise
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user