I am using the script succesfully in conjuction with a php framework.
I call the script and reply the data in JSON format.
When it needs to re-authorize it should open the browser.
Example:
REFRESH - Failed to use refresh token, starting new authorization flow.
Then i use this in a GUI type call from terminal this works without any issues.
When calling the script from inside my PHP framework, or headless from SSH, it refuses to open the browser and the script is broken.
Is there any way i can resolve this issue ?
I am using the script succesfully in conjuction with a php framework. I call the script and reply the data in JSON format.
When it needs to re-authorize it should open the browser.
Example: REFRESH - Failed to use refresh token, starting new authorization flow.
Then i use this in a GUI type call from terminal this works without any issues. When calling the script from inside my PHP framework, or headless from SSH, it refuses to open the browser and the script is broken. Is there any way i can resolve this issue ?