I am using the client SDK in a next js project and...
# support-questions-legacy
a
I am using the client SDK in a next js project and I was wondering if I need to handle somehow 401 errors. I understand that client SDK does all the magic by patching any fetch request, but I’d like to handle the case where the session is expired and redirect users to login screen. I’m using a visto graphql server. How do I differentiate between UNAUTHORIZED (redirect to login) and the normal “needs-refresh” flow? Also, is there a way to skip the interceptors and implement manually the session refresh attempt?