You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implement onSubChange for FID-based registration (#9996)
* implement onSubChange for FID-based registration
* Persist VAPID key in FID registration metadata to fix re-registration issue
* Enforce mutual exclusivity of token and FID registrations in DB layer
* Notify clients in onSubChange on successful FID refresh
- Update onSubChange to notify window clients when FID registration is refreshed. Previously it did not notify clients.
- Update refreshFidRegistrationIfStored to return the current FID.
- Update onSubChange to use the returned FID and only notify if the refresh was successful.
- Add unit tests to verify client notification on success, failure, and when not registered.
- Fix a lint error in window-listener.ts by adding the FidRegisteredPayload interface.
---------
Co-authored-by: Kai Wu <zwu52@users.noreply.github.com>
0 commit comments