r/GoogleAppsScript • • Jul 12 '20

Question Can someone explain now callback URLs work? Whats the difference between /exec and /usercallback?

Comment removed in protest of Reddit's API changes forcing third-party apps to shut down

6 Upvotes

1 comment sorted by

1

u/kawalao Jul 12 '20

I’m not too familiar with OAuth, state tokens, and callbacks, but from what little I do know, it seems to me like this is the process by which google allows you to build in functionality by which a method can be remembered and executed after authentication. I think it’s along the lines of asynchronous execution since “remembering” what the user was doing right before you do something like authorization isn’t super easy. Plain and simple HTTP GET / POST calls usually follow a simple single step flow, whereas callbacks would allow it to automatically perform multiple steps at once