Skip to content

[1.0.60] - 2025-03-01

Choose a tag to compare

@F3NN3X F3NN3X released this 28 Feb 23:44
· 39 commits to main since this release

Changelog

v1.0.60 (Mar 1, 2025)

  • Fixed: Long-term restart token refresh.
    • Changes: Moved expiration check into TryInitializeClientWithAccessToken(), ensured refresh on failure in Initialize().
    • Purpose: Resolves "The access token expired" after app closure >1 hour by properly refreshing on restart.
  • Fixed: Token expiration handling on restart.
    • Changes: Adjusted TryInitializeClientWithAccessToken() to return bool, moved expiration logic inside, updated Initialize() to refresh on failure.
    • Purpose: Attempt to fix "The access token expired" after long app closure (incomplete fix, refined in v1.0.60).
  • Fixed: Simplified token management for restart.
    • Changes: Removed ExpiresIn, used WithToken() for valid tokens, refreshed if expired, aligned with SpotifyAPI.Web best practices.
    • Purpose: Resolved "Only valid bearer authentication supported" by simplifying PKCE token handling; short restarts worked, long restarts still failed.
  • Fixed: PKCE token restoration on restart.
    • Changes: Added expires_in to .tmp, aligned TryInitializeClientWithAccessToken() 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).
  • Fixed: Token restoration on restart.
    • Changes: Adjusted TryInitializeClientWithAccessToken() to use correct ExpiresIn, fixed null reference warning (CS8601).
    • Purpose: Attempt to resolve "Only valid bearer authentication supported" (incomplete due to static ExpiresIn).
  • Fixed: Token reuse on restart.
    • Changes: Updated TryInitializeClientWithAccessToken() to include refreshToken in PKCEAuthenticator setup, ensuring valid token state.
    • Purpose: Attempt to fix "String is empty or null (Parameter 'refreshToken')" (failed due to PKCETokenResponse issues).
  • Fixed: Invalid bearer token on restart.
    • Changes: Simplified TryInitializeClientWithAccessToken() to avoid recalculating ExpiresIn, ensuring valid token reuse from .tmp.
    • Purpose: Attempt to resolve "Only valid bearer authentication supported" (still failed due to token state).
  • Fixed: Token loading on restart with enhanced logging.
    • Changes: Improved .tmp parsing with validation, added detailed logging to debug token issues.
    • Purpose: Diagnose "Error updating Spotify info" on restart (identified bearer token issue).

Full Changelog: 1.0.46...1.0.60