AxaFrance / oidc-client

Light, Secure, Pure Javascript OIDC (Open ID Connect) Client. We provide also a REACT wrapper (compatible NextJS, etc.).
MIT License
601 stars 161 forks source link

fix(oidc): force sw update when new registration appears (release) #1449

Closed wermanoid closed 1 month ago

wermanoid commented 2 months ago

Should help with https://github.com/AxaFrance/oidc-client/issues/1400

Also allow to update SW when some code changes happens within same version. At lest existing service_worker_update_require_callback was effective enough for me in private app tests and with react-oidc-demo app too. I didn't fail in any reload loop, since SW copy function was added to app prestart.

@piotrbartnik @guillaume-chervet would be great if you could prove that it works or not at yours environment

guillaume-chervet commented 1 month ago

very very sorry for the delay @wermanoid