Logout User from axios response interceptor for server-component
Here I have implemented axios interceptors for nextjs 14 application. And need help to logout user if any error occurs and redirect user to ‘/login’ page.
I am attaching interceptors code here.