Closed JeroennC closed 6 years ago
Thanks for your contribution. The only thing I aware is, temporal baseUrl could be expired before next scanning. By the API documents, baseUrl might have 1-hour lifetime after once generated. So, if an interval of scanning exceeds 1 hour (when user have tons of photos or longtime slideshow), I think there could be the risk of expiration of baseUrl. Do you consider this? Please tell me if I wrong.
Yes I noticed this remark in the code for the scanInterval, however this does not affect the actual refreshInterval right?
So the if-statement ensuring that scanInterval is no larger than 1 hour ensures that baseUrl is valid. Anyhow, the getPhoto
function does not do a call to the google API anymore hence the re-authentication is not needed before it.
Thanks for inform. I'll merge this.
I can't maintain this module any more. Have you interest to take new ownership of this module? https://forum.magicmirror.builders/topic/12779/wanted-new-ownership-of-modules?page=1
This authentication seems to be leftover from old code, but is no longer necessary, as baseUrl's are already retrieved.