Skip to content

Commit 12ae483

Browse files
dont need separate get identity functions anymore
1 parent f1d89c5 commit 12ae483

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/sdkBase.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export abstract class SdkBase {
8484
this._callbackManager = new CallbackManager(
8585
this,
8686
this._product.name,
87-
() => this.getIdentityForCallback(),
87+
() => this.getIdentity(),
8888
this._logger
8989
);
9090
}
@@ -170,11 +170,6 @@ export abstract class SdkBase {
170170
return identity;
171171
}
172172

173-
private getIdentityForCallback(): Identity | null {
174-
const identity = this._identity ?? this.getIdentityNoInit();
175-
return isValidIdentity(identity) && !this.temporarilyUnavailable(identity) ? identity : null;
176-
}
177-
178173
// When the SDK has been initialized, this function should return the token
179174
// from the most recent refresh request, if there is a request, wait for the
180175
// new token. Otherwise, returns a promise which will be resolved after init.

0 commit comments

Comments
 (0)