Hi, I am a newbie, and I would really appreciate a bit of help. I am struggling to implement a google doc "Add-on" that connects with a third-party OAuth2.0 api. I am familiar with OAuth2.0, and I understand that I need to use the web server app flow. I also see that "state token" is supported i.e. https://developers.google.com/apps-script/reference/script/script-app#newStateToken() but I don't understand how to trigger a server-side js function from my UI (client side js) to initiate the OAuth2.0 authorization and what happens after the redirection back to the callback URL! Does anyone know of any examples? Thanks!
Add a comment...