Hello
I have an API workflow which includes the ‘Log the user in’ action. This workflow returns an access token which is saved to each users User record. The access token is used by the user to authenticate subsequent requests to other API workflows. It’s included in the request header as a bearer token like this: Authorization: Bearer ACCESS_TOKEN. I see these tokens as API keys for app users
For clarity, I’m using the “– Create Sign up/Login API workflows” method described in the Bubble manual here
Workflow config:
Log the user in action config:
All works fine. However, if a user requires a new token, the old token should be deleted or otherwise cease to work. Unfortunately, old tokens remain valid. I can make requests using different tokens created by the same user.
If a token becomes compromised, access to the API will be possible even if a new token in created.
Is there a way to delete unwanted tokens so that only 1 token will be usable at any one time for each user or am I looking at this completely the wrong way?
Many thanks

