Skip to content

Conversation

@brandonlammey
Copy link
Contributor

@brandonlammey brandonlammey commented May 24, 2021

Description

  • Add state to track login popup
  • Add callback function params

Related Issue

Closes #465

Motivation and Context

  • Allows the user to track when the login popup is open to control a loader
  • Allows input of callback functions to easily fire off events when accountManager state is updated

How Has This Been Tested?

Tested in docz

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

@brandonlammey brandonlammey self-assigned this May 24, 2021
@brandonlammey
Copy link
Contributor Author

brandonlammey commented May 25, 2021

  • callbacks added for: addAccount, removeAccount, logoutAccount
  • callbacks added for: removeAllAccounts, logoutAllAccounts, restoreAccount, refreshAccount
  • popupOpen added to accountManagerState
    • set for addAccount
    • set for refresh/restore
    • check if closed when user closes window directly

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.

useAccountManager popup improvements

2 participants