When the user logs in, a new API token in generated and stored as a cookie in the user's browser.
Once the user clicks the log out button this token is removed from the browser's cookies but at the moment it will remain in the backend data base. Because of that, a lot of unused tokens fill up the data base.
This PR add logic to the logout endpoint that removes the token which was used to perform the logout.
When the user logs in, a new API token in generated and stored as a cookie in the user's browser. Once the user clicks the log out button this token is removed from the browser's cookies but at the moment it will remain in the backend data base. Because of that, a lot of unused tokens fill up the data base. This PR add logic to the logout endpoint that removes the token which was used to perform the logout.