Don't forget to set credentials include on the logout api request.
credentials: 'include',
POST /api/auth/logout
POST
/api/auth/logout
{ success: "OK" }
{ error: "Invalid token" }
Last updated 2 years ago