[1.0.60] - 2025-03-01
Changelog
v1.0.60 (Mar 1, 2025)
- Fixed: Long-term restart token refresh.
- Changes: Moved expiration check into
TryInitializeClientWithAccessToken(), ensured refresh on failure inInitialize(). - Purpose: Resolves "The access token expired" after app closure >1 hour by properly refreshing on restart.
- Changes: Moved expiration check into
- Fixed: Token expiration handling on restart.
- Changes: Adjusted
TryInitializeClientWithAccessToken()to returnbool, moved expiration logic inside, updatedInitialize()to refresh on failure. - Purpose: Attempt to fix "The access token expired" after long app closure (incomplete fix, refined in v1.0.60).
- Changes: Adjusted
- Fixed: Simplified token management for restart.
- Changes: Removed
ExpiresIn, usedWithToken()for valid tokens, refreshed if expired, aligned withSpotifyAPI.Webbest practices. - Purpose: Resolved "Only valid bearer authentication supported" by simplifying PKCE token handling; short restarts worked, long restarts still failed.
- Changes: Removed
- Fixed: PKCE token restoration on restart.
- Changes: Added
expires_into.tmp, alignedTryInitializeClientWithAccessToken()with Spotify PKCE flow by preserving exact token state. - Purpose: Attempt to fix "Only valid bearer authentication supported" (still failed due to token state mismatch).
- Changes: Added
- Fixed: Token restoration on restart.
- Changes: Adjusted
TryInitializeClientWithAccessToken()to use correctExpiresIn, fixed null reference warning (CS8601). - Purpose: Attempt to resolve "Only valid bearer authentication supported" (incomplete due to static
ExpiresIn).
- Changes: Adjusted
- Fixed: Token reuse on restart.
- Changes: Updated
TryInitializeClientWithAccessToken()to includerefreshTokeninPKCEAuthenticatorsetup, ensuring valid token state. - Purpose: Attempt to fix "String is empty or null (Parameter 'refreshToken')" (failed due to
PKCETokenResponseissues).
- Changes: Updated
- Fixed: Invalid bearer token on restart.
- Changes: Simplified
TryInitializeClientWithAccessToken()to avoid recalculatingExpiresIn, ensuring valid token reuse from.tmp. - Purpose: Attempt to resolve "Only valid bearer authentication supported" (still failed due to token state).
- Changes: Simplified
- Fixed: Token loading on restart with enhanced logging.
- Changes: Improved
.tmpparsing with validation, added detailed logging to debug token issues. - Purpose: Diagnose "Error updating Spotify info" on restart (identified bearer token issue).
- Changes: Improved
Full Changelog: 1.0.46...1.0.60