Hi, Does this also work to authorize an apps script to access when the script runs on a trigger? How should I do that?