I believe you need to convert the cookies to the format that BAS understands, and then import them into BAS using a standard method.
Take a look:
https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie
@basmail said in Get BAS Script username:
Hello everyone,
is it possible to query the BAS username which the user uses for authentication for premium scripts while the script is running? I need it for API calls.
Thanks for helping! :)
There is no such functionality yet.