Commit 6ceda9a
authored
Reduce access_token refresh margin delay from 2 days to 10 minutes (#76)
Starting on March 4, 2025, a Trakt OAuth `access_token` will expire in
24 hours, instead of 3 months.
The current logic is to refresh the `access_token` if its expiration
date is within next 2 days.
With current code, a 24h token would be immediately refreshed after
being fetched. We do not want that.
This PR changes this delay from 2 days to 10 minutes.
>Why 10 minutes ?
This is a margin to be sure the token does not expire in the middle of a
critical action such as a list sync/fetch/post.
It could be any other delay, but not bigger than 24h.
Refs :
- trakt/trakt-api#4951 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
0 commit comments