verbal-limeV
Refine3y ago
7 replies
verbal-lime

Why CheckAuth triggers twice?

Hello everyone,
I am trying to implement JWT authentication with expiration checking and refreshing using authProvider.
I decided to put logic of JWT checking and refreshing inside CheckAuth method, but faced up the fact this method triggers twice during ordinary getlist request. So in case if refreshing is needed it leads to multiple refresh requests.
Here is my code
image.png
image.png
Was this page helpful?