next-auth handling session expired from backend golang
i want to handle token expired from backend in next js and save the token in session next-auth and cookie , but i have the problem when the token from backend is expired , i have no idea to delete the token when every 401 response code from backend and redirect to login in the client side, this is my code , in this case i don’t want to decode the token