The process we outline in this thread mostly focus on having the access tokens as variables in the UI, and then reuse them depending on the context. Here is a great explanation of what we mean:
The idea is for you to keep the variables stored safely on the UI and call specific scripts (which export the correct token, per context)