I unable to delete jwt token in cookies next js
Unanswered
Araucanian herring posted this in #help-forum
Araucanian herringOP
I'm experiencing difficulties in deleting an expired JWT token. I've attempted to use deleteCookie() from "next-cookies", but it doesn't seem to work. Additionally, I've called the api/logout endpoint and set the response.cookies.set("token", "", { expires: new Date(0) }) in the response, but it still doesn't delete the token. How can I resolve this issue?