So I have a GDS connector project that uses this library (updated the version today to the most recent). I'm relying on the 3-legged workflow just for some context. For some reason, and quite unpredictably, the auth flow sometimes encounters an 'invalid_grant' response, which most likely means that the authorization code somehow does not exist or has already been consumed, but I don't know what might cause that. Have any other Apps Script developers encountered this to your knowledge, and what are some steps I might take to counteract this? Could the Service object be using up the code somewhere I'm not seeing?
I discovered the problem was that I was using deployments as separate environments which was causing some code/variables to be shared or overwritten across environments. Not an OAuth issue
So I have a GDS connector project that uses this library (updated the version today to the most recent). I'm relying on the 3-legged workflow just for some context. For some reason, and quite unpredictably, the auth flow sometimes encounters an 'invalid_grant' response, which most likely means that the authorization code somehow does not exist or has already been consumed, but I don't know what might cause that. Have any other Apps Script developers encountered this to your knowledge, and what are some steps I might take to counteract this? Could the Service object be using up the code somewhere I'm not seeing?