Home

Issue: 477

Is there a way to delete a cookie in a middleware on server-side

[issue link]

I have a middleware checking if there’s an auth token provided in a cookie. Basing on this token I perform a request retrieving current user’s profile. Chances are, that the token is invalid. So, I want to force logout in this case. Which means I need to delete this auth token cookie too. How can I do that on server-side?

This question is available on Nuxt.js community (#c416)