Skip to content

Commit c4061fe

Browse files
get identity return
1 parent 4053cb7 commit c4061fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sdkBase.ts

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export abstract class SdkBase {
163163

164164
public getIdentity(): Identity | null {
165165
const identity = this._identity ?? this.getIdentityNoInit();
166+
// if identity is valid (includes not opted out) and available, return it
166167
return isValidIdentity(identity) && !this.temporarilyUnavailable(identity) ? identity : null;
167168
}
168169

0 commit comments

Comments
 (0)