Delete JWT on Logout #412
Labels
bug
Release Note: Shows as Error Correction
features: Security Testing
level: medium
priority: SHOULD HAVE
role: back-end
Node/Express Development Task
role: front-end
Front End Developer
Milestone
Overview
Investigate best practice for removing JWT cookie on Logout. It currently remains after logging out, which could create security vulnerability.
Action Items
JWT Storage Best Practices
Use cookies
What is
HttpOnly
prop of cookieDocument.cookie
API; it's only sent to the server.Cookies vs Local Storage
Cookies
Local Storage
The Difference
Which to use
- [ ] APPLY: I anticipate the solution will either be:- converting the cookie to not httpOnly and deleting it from client on logout.- or creating a server endpoint to remove the cookieTechnical Solution
request
, and thenset
the token with a new expiration dateTime.Previous related issues:
The text was updated successfully, but these errors were encountered: