Skip to content

Refreshing access tokens #11

@DanielKerrigan

Description

@DanielKerrigan

If I add a song, wait an hour or so without using jamocracy, and then try to remove the song, it will not work due to an expired access token. Before we interact with a playlist, we should make sure that the access token is not expired.

In playlist_services,js, we should be calling SpotifyService.refreshAccessToken() in both addSongToPlaylist() and removeSong(). I don't think we need it in getSong().

Also, we should see if there is a way to check if an access token needs to be refreshed so that we can avoid refreshing it every time a song is added/removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions