How can I handle a 401 unauthorized response to logout the user from the app?
I'm asking if refine has a way to handle when you have a 401 response in your dataProvider, and make the app run the logout method of the AuthProvider or if I have to handle it in the axios instance.
I'm asking this because I dont want the check function of the AuthProvider validating the jwt token, because that would imply that I have to save the JWT secret in a env variable in the client, and that is not secure.
Thanks!
I'm asking this because I dont want the check function of the AuthProvider validating the jwt token, because that would imply that I have to save the JWT secret in a env variable in the client, and that is not secure.
Thanks!
