Refresh Tokens and Get User Information

Learn to refresh the access token and obtain the user information.

The access token expires after the expiration datetime has elapsed. So, in case of a 401:Unauthorized error, we use the REFRESH_TOKEN to refresh the ACCESS_TOKEN.

Refresh access token

Click the "Run" button in the widget below to refresh the ACCESS_TOKEN.

Note: Make sure the values for the CLIENT_ID, CLIENT_SECRET, ACCESS_TOKEN, REFRESH_TOKEN, and EXPIRY are already set.

Get hands-on with 1200+ tech skills courses.