googleworkspace / apps-script-oauth2

An OAuth2 library for Google Apps Script.
https://developers.google.com/apps-script/
Apache License 2.0
1.56k stars 429 forks source link

Error when attempting to auth using PKCE #342

Closed tchorsch closed 2 years ago

tchorsch commented 2 years ago

https://github.com/googleworkspace/apps-script-oauth2/blob/3a2924dd0adc9eaf92e5fd64c242bd93ffb3f3ff/src/Service.js#L404

At that line, should not this function include the code_verifier value when attempting to use this option like is shown here?

https://github.com/googleworkspace/apps-script-oauth2/blob/3adda8a27b16960572a811239c5ddbe9b1c90c09/samples/Twitter.gs#L42

When attempting this kind of auth, I am getting the following error.

Error: Error retrieving token: invalid_request, code_verifier is required (line 553, file "Service")

tchorsch commented 2 years ago

Nevermind... I have just seen https://github.com/googleworkspace/apps-script-oauth2/pull/339