save refreshed token

This commit is contained in:
2026-01-23 12:30:01 +00:00
parent f354e41ab7
commit 92b86ba89b

View File

@@ -108,6 +108,7 @@ func RefreshClient(auth *spotifyauth.Authenticator, token *oauth2.Token) (*spoti
if err != nil {
return nil, err
}
SaveSpotifyToken(SPOTIFY_TOKEN_JSON_PATH, token)
client := spotify.New(auth.Client(ctx, token))