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 4053cb7 commit c4061feCopy full SHA for c4061fe
src/sdkBase.ts
@@ -163,6 +163,7 @@ export abstract class SdkBase {
163
164
public getIdentity(): Identity | null {
165
const identity = this._identity ?? this.getIdentityNoInit();
166
+ // if identity is valid (includes not opted out) and available, return it
167
return isValidIdentity(identity) && !this.temporarilyUnavailable(identity) ? identity : null;
168
}
169
0 commit comments