Closed icarus323 closed 8 months ago
The token should be refreshed automatically in the latest version. Could you please update and retry?
I ran into this recently, but waiting another 10 days to see if it works. But I created the credentials as followed by the ReadMe and created the token by following the steps. After it was generated, I saw that we had to publish our app in order to prevent our tokens from expiring every 7-10 days, so I published it but that was after the token generation.
I got my first token on July 12th, and then it ended up expiring on July 21st. I pulled the latest code on July 21st and generated a new token so hoping that the token doesn't expire by July 31st. Will give an update on whether the token expires or not by then!
@martian0718 you can check the MagicMirror logs to verify the activity. For example, I run MagicMirror with pm2. Here is the logs to show the token has renew:
tail -1000 mm-out.log | grep Token
[24.07.2023 00:40.57.527] [LOG] [GPHOTOS:AUTH] Token is expired.
[24.07.2023 00:40.57.943] [LOG] [GPHOTOS:AUTH] Token is refreshed.
[24.07.2023 00:40.59.903] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 00:41.09.701] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 00:41.10.472] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 00:41.12.708] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 00:41.13.287] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 01:35.57.536] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 01:36.00.276] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 01:36.09.669] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 01:36.10.329] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 01:36.12.303] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 01:36.13.906] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 02:30.57.544] [LOG] [GPHOTOS:AUTH] Token is expired.
[24.07.2023 02:30.57.888] [LOG] [GPHOTOS:AUTH] Token is refreshed.
[24.07.2023 02:31.00.417] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 02:31.17.180] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 02:31.18.077] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 02:31.21.806] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 02:31.22.427] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 03:25.57.544] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 03:25.59.948] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 03:26.10.342] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 03:26.11.242] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 03:26.13.859] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 03:26.14.447] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 04:20.57.552] [LOG] [GPHOTOS:AUTH] Token is expired.
[24.07.2023 04:20.57.687] [LOG] [GPHOTOS:AUTH] Token is refreshed.
[24.07.2023 04:21.00.423] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 04:21.10.815] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 04:21.11.630] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 04:21.14.484] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 04:21.15.706] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 05:15.57.559] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 05:16.00.194] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 05:16.09.882] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 05:16.11.154] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 05:16.13.697] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 05:16.14.282] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 06:10.57.561] [LOG] [GPHOTOS:AUTH] Token is expired.
[24.07.2023 06:10.57.694] [LOG] [GPHOTOS:AUTH] Token is refreshed.
[24.07.2023 06:10.59.780] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 06:11.09.210] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 06:11.09.913] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 06:11.11.902] [LOG] [GPHOTOS:AUTH] Token is alive.
[24.07.2023 06:11.12.512] [LOG] [GPHOTOS:AUTH] Token is alive.
The token should be refreshed automatically in the latest version. Could you please update and retry?
I was late to check your reply. I've been manually refreshing tokens for a few weeks, and now they're updating normally, even though I haven't done anything else. I'm nervous because I don't know why, but I'm just happy for now.
I followed the instructions below, but I have to regenerate the token almost every week because it expires. Are there any changes I should be aware of?