googleworkspace / php-samples

PHP samples for Google Workspace APIs
Apache License 2.0
288 stars 348 forks source link

Invalid parameter value for access_type: 'offline ' is not valid #44

Closed joeybab3 closed 5 years ago

joeybab3 commented 5 years ago

When using the sheets quickstart for php: https://developers.google.com/sheets/api/quickstart/php I am able to install everything as required, running it gives me a url successfully, but going to that url for verification yields a 400 error with the message

Error: invalid_request

Invalid parameter value for access_type: 'offline ' is not valid
erickoledadevrel commented 5 years ago

It looks like you may have copied some extra whitespace which is causing a problem when the OAuth system is handling the URL. Please try again ensuring that you don't copy any extra characters.