Skip to content

Commit

Permalink
unavailable check still needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Feb 19, 2025
1 parent 6bea2a5 commit c16234b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sdkBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ export abstract class SdkBase {
}

public isLoginRequired() {
const identity = this._identity ?? this.getIdentityNoInit();
// if identity temporarily unavailable, login is not required
if (this.temporarilyUnavailable(identity)) {
return false;
}
return !this.isIdentityAvailable();
}

Expand Down

0 comments on commit c16234b

Please sign in to comment.