KRight. I pointed it out because I have the same issue of trying to redirect the user to the signin page while keeping the toast rendered.Reply·Article·Sep 4, 2023·Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.
KIn the catch in the response interceptor, wouldn't the toast disappear right away due to window.location.href = window.location.origin ?Comment·Article·Sep 4, 2023·Authentication & Refresh token flow with Nextjs, Typescript, React Query and axios interceptors.