0

I am using OAuth2 for Apps Script to create and authorize OAuth2 tokens as well as refresh them when they expire. As per their documentation, I am using Redirect URI of below format:

https://script.google.com/macros/d/{SCRIPT ID}/usercallback

It works for most of the case but it fails for only one user and found that the Redirect URI is changed for him after login. For a better explanation, I have renamed the domain name to abc.com

https://script.google.com/macros/abc.com/d/{SCRIPT ID}/usercallback

I don't understand how it inserts abc.com in the callback. As a result, I am encountering below error:

Library with identifier OAuth2 is missing (perhaps it was deleted, or you don't have read access?)

Any help or suggestion would be great.

Thanks.

TheMaster
  • 45,448
  • 6
  • 62
  • 85
Jayakrishnan
  • 4,232
  • 2
  • 23
  • 35

1 Answers1

0

This happens when the authorizing user is logged into a GSuite account associated with the abc.com domain. The web app URL changes but other than that, the functionality is not affected.

Amit Agarwal
  • 10,910
  • 1
  • 32
  • 43