clegallic / MMM-GoogleDriveSlideShow

Magic Mirror² Google Drive Photos Slideshow Module
MIT License
11 stars 8 forks source link

google photos auth broken #8

Open joshcsepegi opened 2 years ago

joshcsepegi commented 2 years ago

It seems google has changed the authorization process. both this project and the google photos project are broken. here is the error.

pi@atari-pi:~/MagicMirror/modules/MMM-GoogleDriveSlideShow $ npm run token:generate

mmm-googledriveslideshow@0.0.1 token:generate node generate-auth-token.js

/home/pi/MagicMirror/modules/MMM-GoogleDriveSlideShow/generate-auth-token.js:33 const OAuth2Client = new google.auth.OAuth2(client_id, client_secret, redirect_uris[0]); ^

TypeError: Cannot read properties of undefined (reading '0') at /home/pi/MagicMirror/modules/MMM-GoogleDriveSlideShow/generate-auth-token.js:33:86 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

phevi0 commented 2 years ago

Changing it to Desktop App made it work for me.

Tomxtal commented 2 years ago

Can anyone help. I have a working MMM-GoogleDriveSlideShow at the moment but I have received a email from Google telling me that OAuth OOB flow will be deprecated on October 3, 2022. my problem is do not know what I'm to do, I see phevi0 say Changing it to Desktop App. As I do not know where to start can someone help.