auth-module icon indicating copy to clipboard operation
auth-module copied to clipboard

Ensure all token refreshes use the Controller

Open Carl-Foster opened this issue 2 years ago • 1 comments

The issue was found when an expired token was used in a client-side navigation to a page with multiple axios requests. Each request would send out a refresh request first. In our case, if would cause multiple new tokens to be created while only the last would be allowed. This then could cause a race condition which would log the user out.

The fix implemented is to simply use the pre-existing RefreshController to ensure that only one refresh request is sent.

Carl-Foster avatar May 03 '22 03:05 Carl-Foster

Any update on this? It would be really good if this fix gets merged.

sadeghi-aa avatar Sep 13 '22 05:09 sadeghi-aa