We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4061fe commit 86501e8Copy full SHA for 86501e8
src/sdkBase.ts
@@ -190,8 +190,11 @@ export abstract class SdkBase {
190
191
public isIdentityAvailable() {
192
const identity = this._identity ?? this.getIdentityNoInit();
193
+ // available if identity exists and has not expired or if there active requests
194
return (
- (identity && !hasExpired && !this.temporarilyUnavailable(identity)) ||
195
+ (identity &&
196
+ !hasExpired(identity.refresh_expires) &&
197
+ !this.temporarilyUnavailable(identity)) ||
198
this._apiClient?.hasActiveRequests()
199
);
200
}
0 commit comments