Skip to content

useAccountManager popup improvements #465

@am-maneaters

Description

@am-maneaters

Few ideas I had for improving useAccountManager, mostly when using popup.

  • improved status checking

    • check if popup window is currently open
    • something like const {popupOpen: boolean} = useAccountManager()
      for example: this would make it easy to display a loader on the base website while the authentication is happening in the popup window (i.e. {popupOpen && })
  • callback events

    • something like useAccountManager(options, onAccountAdded : () => {}, onAccountRemoved: () => {}, onAccountsUpdated:: () => {}, onAuthCancelled: () => {})
      ex: in table editor, after authentication is finished, i want to use a callback to execute some cmds. here's how i do it now:

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions