We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c4167c commit 4053cb7Copy full SHA for 4053cb7
src/sdkBase.ts
@@ -163,10 +163,7 @@ export abstract class SdkBase {
163
164
public getIdentity(): Identity | null {
165
const identity = this._identity ?? this.getIdentityNoInit();
166
- if (!isValidIdentity(identity) || this.temporarilyUnavailable(identity)) {
167
- return null;
168
- }
169
- return identity;
+ return isValidIdentity(identity) && !this.temporarilyUnavailable(identity) ? identity : null;
170
}
171
172
// When the SDK has been initialized, this function should return the token
0 commit comments