I'm trying to execute a Google Apps Script from an event on my Chrome extension. While it works great, when ran for the first time by a new user, the apps script requires for the user to give it authorization before it can execute. The problem is when running the script from the extension the user doesn't see the authorization request so nothing happens. They would have to manually run the script first on their web browser and after that the extension starts working.
My question is, why is the script asking for authorization if it's deployed for "anyone" to access it. The Google sheet is also published and editable by anybody with a link so no authorization is required to edit it.