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)
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
/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)