cookie deletion error
Unanswered
American black bear posted this in #help-forum
American black bearOP
JWSInvalid: Invalid Compact JWS
Hello. I have a problem
Whenever I delete a cookie I get this error
The cookie gets deleted but also gives this error. Any idea how to fix it?
Hello. I have a problem
Whenever I delete a cookie I get this error
The cookie gets deleted but also gives this error. Any idea how to fix it?
9 Replies
@Ray how do you set and delete the cookie?
American black bearOP
const c = cookies()
c.delete("token")@American black bear js
const c = cookies()
c.delete("token")
is the value of the cookie a jwt token?
@Ray is the value of the cookie a jwt token?
American black bearOP
Yes
American black bearOP
....
Labrador Duck
I think somewhere it's still checking the cookie of valid jwt that's why...check if you have that in middleware or any layout files
@Labrador Duck I think somewhere it's still checking the cookie of valid jwt that's why...check if you have that in middleware or any layout files
American black bearOP
Hmm. Ig it's in api routes
Will check tommrow
Or ig it's with the getCurrentUser function that I'm using