I refresh the Token, but i get 90 days

i’m using this code in powershell

$values = @{
‘refresh_token’ = $refreshtoken
‘client_id’ = ‘65’
‘client_secret’ = ‘1d5f6bdeb4’
‘redirect_uri’ = ‘urn:ietf:wg:oauth:2.0:oob’
‘grant_type’ = ‘refresh_token’
} | ConvertTo-Json

$headers = @{
‘User-Agent’ = ‘WatchedShows v1.0’
‘Content-Type’ = ‘application/json’
}

$path=“token.txt”
$url=“https://api.trakt.tv/oauth/token”
$response = Invoke-RestMethod -Uri $url -Method Post -Headers $headers -Body $values
$access_token  = $response.access_token
$refresh_token = $response.refresh_token
$expires_in    = $response.expires_in

Write-Host "Access Token: [$access_token]" ; Add-Content $path "Access Token: [$access_token]"
Write-Host "Refresh Token: [$refresh_token]" ; Add-Content $path "Refresh Token: [$refresh_token]"

The result is the access and refresh token, and expire i get 90 days (7775999 seconds) Which is valid cause i try the same access token 3 days after and it works.