Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Trakt API] Access Token will expire every 24h starting March 4, 2025 #7

Open
navilg opened this issue Feb 7, 2025 · 0 comments
Open

Comments

@navilg
Copy link
Owner

navilg commented Feb 7, 2025

Content of email received:

Starting on March 4, 2025, an OAuth access_token will expire in 24 hours, instead of 3 months. Since you've created a Trakt API app, we wanted to let you know directly.

Why are we reducing the expiration?

3 months is a long time and is a potential security risk if the access_token gets intercepted. We're instead going with a much lower 24 hours and relying on apps to automatically use the refresh_token more often to obtain a new access_token.

Do I need to update my app?

Probably not, since you should already be handling expired an access_token and refreshing it automatically. If you're hard coding a refresh interval, we suggest making that check dynamic and based on the expires_in value instead. If you aren't doing this, check out the Trakt API docs.

What about existing access tokens?

They should continue to work up until their expiration date. At that time, your app needs to refresh it and get a new access_token, then use the expires_in value so your app can dynamically handle when to refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant