Skip to content

Commit

Permalink
dont need separate get identity functions anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Feb 25, 2025
1 parent f1d89c5 commit 12ae483
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/sdkBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export abstract class SdkBase {
this._callbackManager = new CallbackManager(
this,
this._product.name,
() => this.getIdentityForCallback(),
() => this.getIdentity(),
this._logger
);
}
Expand Down Expand Up @@ -170,11 +170,6 @@ export abstract class SdkBase {
return identity;
}

private getIdentityForCallback(): Identity | null {
const identity = this._identity ?? this.getIdentityNoInit();
return isValidIdentity(identity) && !this.temporarilyUnavailable(identity) ? identity : null;
}

// When the SDK has been initialized, this function should return the token
// from the most recent refresh request, if there is a request, wait for the
// new token. Otherwise, returns a promise which will be resolved after init.
Expand Down

0 comments on commit 12ae483

Please sign in to comment.