Google API PHP Authentication Invalid Token Format (the question and the answer)

When running the sample code from the Google Calendar API PHP Example Page, it said "Enter verification code:" at which point I put in my 2FA code from Google Authenticatior.

This produced "Fatal error: Uncaught InvalidArgumentException: Invalid token format in /vendor/google/apiclient/src/Google/Client.php:434"



Read more here: https://stackoverflow.com/questions/54297489/google-api-php-authentication-invalid-token-format-the-question-and-the-answer

Content Attribution

This content was originally published by Terry Carmen at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: