apps-script-oauth2
apps-script-oauth2 copied to clipboard
The `getRedirectUri()` code sample in the README is invalid
The getRedirectUri() code sample is invalid. getService() is not defined, and neither is OAuth2.getService()
/**
* Logs the redirect URI to register.
*/
function logRedirectUri() {
var service = getService();
Logger.log(service.getRedirectUri());
}
I had the same problem, I have done this instead to get the Uri :
function getUrl(){
Logger.log(OAuth2.getRedirectUri());
}
In the code, I found getService_()but I had the same issue.