Jump to content

New Trakt API token expiration


Recommended Posts

adrialcaide
Posted

Hello everyone,

I wanted to bring to your attention an important update regarding the Trakt API. Starting March 4, 2025, the expiration period for access tokens will be reduced from 3 months to just 24 hours.

I don't know if this change will directly impact the Trakt plugin for Emby, because maybe the expiration handling already takes the "expires_in" field into account. But if it doesn't, token handling will need to be adjusted to accommodate the shorter expiration period. I received this information via an email from Trakt.

Here's the discussion link in case you are interested: https://github.com/trakt/api-help/discussions/495

Best regards,

  • Like 1
Posted

Hi, it should all just work, but we'll see what happens.

  • 1 month later...
Posted

Trakt suggests setting the refresh token to 24 hours, following what they sent via email: 'Important API access_token updates':

Starting on March 20, 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.

 

The emby plugin isn't working currently 

adrialcaide
Posted

Yeah thanks @jayfizzefor the report. I haven't been able to test it myself today, but I will report with my findings later today.
 

If the refresh time is hardcoded on the emby plugin, it will need fixing. I looked for the code on github but I believe it's not being publically released anymore. But in the code that's currently available, there's a 2 month refresh period hardcoded:

https://github.com/MediaBrowser/trakt/blob/0431fbf4f4f66347ee16a959277111efb6594b44/Trakt/Api/TraktApi.cs#L1051

Posted
50 minutes ago, adrialcaide said:

Yeah thanks @jayfizzefor the report. I haven't been able to test it myself today, but I will report with my findings later today.
 

If the refresh time is hardcoded on the emby plugin, it will need fixing. I looked for the code on github but I believe it's not being publically released anymore. But in the code that's currently available, there's a 2 month refresh period hardcoded:

https://github.com/MediaBrowser/trakt/blob/0431fbf4f4f66347ee16a959277111efb6594b44/Trakt/Api/TraktApi.cs#L1051

Hi, it is not hardcoded anymore.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...