If the error message says "Authorization is required to perform that action.", all you have to do is authorize your script. Just attempt to run any function manually from the script editor and you'll be asked to authorize.
However, if the script is published as a web app and set to run as the user running the script, then each user accessing the script will be asked to authorize for the first time.