Thank you for the help, but it would be better if someone with experience working with Project IDX could join the discussion.
But if I am to answer your questions:
- How can I send 2 Bearer tokens in one request, and ensure that my API does not get confused between them? The same question applies to Project IDX.
- No, all that Project IDX provides is a temporary access token. It is generated using cmd+shift+p → Project IDX: Generate Access Token:
I see no way to automate this, which is why I started this discussion.
There is what Project IDX docs says about it: https://developers.google.com/idx/guides/troubleshooting#app-backend
