Skip to content

Commit

Permalink
FIX: update expiration time of a newly refreshed token
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 20, 2023
1 parent 2b5f3d5 commit 77042f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spotify.reb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Rebol [
Title: "Spotify"
Purpose: "Spotify Web API access"
Version: 0.2.0
Version: 0.2.1
Author: @Oldes
Date: 20-Jul-2023
File: %spotify.reb
Expand Down Expand Up @@ -272,6 +272,7 @@ refresh: function[
if data/error_description [ sys/log/error 'SPOTIFY data/error_description ]
none
][
attempt [data/expires_in: now + (to time! data/expires_in)]
ctx/token: data
]
]
Expand Down

0 comments on commit 77042f6

Please sign in to comment.