pixiebrix-extension
pixiebrix-extension copied to clipboard
DX: Clean up the listeners in `src/auth/authStorage`
- Do they need to fire every time both the user token data and the partner data changes?
- Are they firing too often? Should there be more checks around whether or not the user/auth actually changed before firing listeners?
- Can we make these events more explicit? For ex. we could have separate
onUserLogouthandlers, separate handlers for "user profile info updated," etc.
Big Question: Can we make Log Out actually work properly in the extension?