Closed Enster1 closed 1 year ago
Hello I received the same issue. You need to generate the OAuth client ID again, chose Desktop for Application type. then acquire and generate the token as directed.
Thanks, I have done that multiple times now but to no avail. I ended up removing the module, pulling it fresh from GitHub and reinstalling. Seems to be working now without issue.
Hi, I came in this morning to work to find two of my MagicMirror modules not working properly. I followed along with Issue #146, but when I run node generate_token_v2.js, I get the following message:
/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/@google-cloud/local-auth/build/src/index.js:55 throw new Error(invalidRedirectUri); ^
Error: The provided keyfile does not define a valid redirect URI. There must be at least one redirect URI defined, and this sample assumes it redirects to 'http://localhost:3000/oauth2callback'. Please edit your keyfile, and add a 'redirect_uris' section. For example:
"redirect_uris": [ "http://localhost:3000/oauth2callback" ]
I believe the token for this module and my other module expired over the holiday and I am unable to refresh either one. Any help would be greatly appreciated. Thanks.