Fix authorization expiry time units

This commit is contained in:
Rafael Moraes
2026-04-01 11:19:57 -03:00
parent 1513272e55
commit 0331571c5d
+1 -3
View File
@@ -201,9 +201,7 @@ class SpotifyApi:
token_data["access_token"],
DEVICE_CLIENT_TOKEN,
)
self._authorization_expire_time = (
int(time.time()) + token_data["expires_in"]
) * 1000
self._authorization_expire_time = int(time.time()) + token_data["expires_in"]
async def _initialize_user_profile(self) -> None:
self.user_profile = await self._get_user_profile() if self.sp_dc else None