I’m having issues obtaining a long lived token programmatically. How can I obtain a long lived token when establishing a web socket connection using my username and password?
I’m able to obtain the token after a web socket connection is created, but I need a token to establish the connection first. Chicken and egg situation…
The below Node Red flow works fine once connected, but again how can I establish a web socket connection when I don’t have an existing long lived token to connect with initially?
NOTE - the assumption here is headless, meaning the application needs to perform this action using the API. I don’t want to manually log into the UI to create the long lived token. I want to create the token using my username and password via the API.
