Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate hasIdentity and replace with isIdentityAvailable #116

Merged
merged 5 commits into from
Dec 12, 2024

Conversation

ashleysmithTTD
Copy link
Contributor

@ashleysmithTTD ashleysmithTTD commented Dec 6, 2024

What Changed:

  • Deprecated hasIdentity
  • Created new function isIdentityAvailable
  • Renamed isLoggedIn private function
  • Added getIdentityNoInit logic when checking if there is an available identity
  • Some formatting changes to other files

@ashleysmithTTD ashleysmithTTD changed the title Deprecate isLoginRequired() Deprecate hasIdentity and replace with isIdentityAvailable Dec 12, 2024
return this._identity && !hasExpired(this._identity.refresh_expires);
private isIdentityValid() {
const identity = this._identity ?? this.getIdentityNoInit();
return identity && !hasExpired(identity.refresh_expires);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed function since its private and this makes more sense. Also added the getIdentityNoInit because we can have an identity without initComplete from the recent SDK changes

@ashleysmithTTD ashleysmithTTD merged commit 03ffd1b into main Dec 12, 2024
3 checks passed
@ashleysmithTTD ashleysmithTTD deleted the ans-UID2-4035-deprecate-is-login-required branch December 12, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants