Skip to content

Commit 787ce74

Browse files
committed
fix: increase buffer time for IGDB access token expiration
1 parent c5bf935 commit 787ce74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/providers/igdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def get_access_token():
2222
cache.set(
2323
"igdb_access_token",
2424
access_token,
25-
response["expires_in"] - 5,
26-
) # 5 seconds buffer to avoid using an expired token
25+
response["expires_in"] - 60,
26+
) # 1 min buffer to avoid using an expired token
2727
return access_token
2828

2929

0 commit comments

Comments
 (0)