ml-tooling / contaxy

MIT License
10 stars 8 forks source link

Remove user's API token from DB after logout #66

Closed JNKielmann closed 2 years ago

JNKielmann commented 2 years ago

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.