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.