Spotify check if access_token is expired -


a small questions. @ moment i'm using spotify webapi, , want know there web api endpoint check if access_token expired? @ moment i'm using

get https://api.spotify.com/v1/me 

to check if access_token expired.

there's no endpoint check how long time there's left until token expires, can use response access token request find out.

as explained in web api authorization guide, response including access token contains

expires_in   int    time period (in seconds) access token valid.  

Comments

Popular posts from this blog

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

java - Reading data from multiple zip files and combining them to one -