How to refresh the OAuth token?

LukaszKLukaszK CACommunity Member Qubie ✭

How to refresh the OAuth token?

Hi! I'm following this guide on implementing OAuth2: https://api.qualtrics.com/instructions/docs/Instructions/Quick%20Start/getting-more-secure-with-oauth.md

Everything is fine so far, but the docs do not mention how to refresh the token after expiry - what is the endpoint to call and what are the parameters? Usually I'd expect a call to oauth/token?refresh_token=...&grant_type=refresh but it's not mentioned anywhere.

Best Answer

  • LukaszKLukaszK CACommunity Member Qubie ✭
    Accepted Answer

    Answering my own question, as we have figured this out on our own:


    You need to POST to /oauth2/token endpoint with the following parameters:


    query-params: { grant_type: "refresh_token", refresh_token: "THE TOKEN" }
    

    and use the client ID and client secret as basic authentication info.

Sign In to Comment