You are right. I forgot that I had some scripts running that targeted another UserId I used with the device previously.
I'll implement a few more functions to maintain the token database better which should help in most cases.
But a few edge cases will likely remain that I can't catch. Like reinstalling the app and using a different login afterwards where I can't connect the previous login with the new login on the device.