ml-tooling / contaxy

MIT License
10 stars 8 forks source link

Improve user and project token endpoints to return same token if it was already generated. #67

Closed JNKielmann closed 2 years ago

JNKielmann commented 2 years ago

So far the project and user token endpoint generate a new token every time. That would cause quite a lot of tokens to be generated over time. This PR adds code to check if a user/project token was already created and return that instead of generating a new one.

lgtm-com[bot] commented 2 years ago

This pull request introduces 2 alerts when merging 1d7e46842fc628450baf95fcc3d0abb4a15bf720 into 7e09b38dd02c9c16e5d7548e6a0cb5499ac4d775 - view on LGTM.com

new alerts: