Hey community,
I’m facing a tricky issue with my application when fetching boards, items, images, and document binaries using the Miro API.
Here’s the flow:
- Token Generation: Each time the application starts, it obtains a token to authenticate API requests.
- Handling Redirects: When fetching images and binary documents, I receive a 307 Redirect. I handle this by extracting the
Location
header and redirecting accordingly.
This works fine up to this point.
However, the issue arises after the redirect:
- The redirected host requires a new token, causing my application to break since subsequent requests still use the old token.
My experience with APIs suggests it’s possible to maintain multiple valid tokens simultaneously for different requests.
My Question:
Why does the Miro API invalidate - delete the old token when a new one is generated?
Is it possible to have multiple tokens active at the same time for different requests in Miro?
Any insights or suggestions would be greatly appreciated!
Let me know if you have any questions - i know that this topic is kinda complicated.
Thanks in advance,
BR
Vas