How to use the Refresh Token?

For the record, here’s the curl version.

Requirements: You need a refresh token that is associated with an OAuth client. The grant type refresh_token won’t work with a regular refresh token generated using the particle:particle credentials.

Then, you can fetch your new credentials like this:

curl https://api.particle.io/oauth/token \
    -d grant_type=refresh_token \
    -d refresh_token='<your-refresh-token>'