Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What does a refresh token response look like

ANSWERED

I don't see in the api doc an example of a refresh token response example, only the request.  Also, is there a way to force and existing auth token to an expired state?

 

Thanks!

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

A refresh token request response looks like an access token request response. An example with some obfuscation:

 

{
    "access_token": "xxXxxXxxOxJIUzI1NiJ9.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.3OXXXx-X0f0DjYzbcztrM79aYhCdk-XxX8Xxx6XX-9x",
    "expires_in": 28800,
    "refresh_token": "xx019103x352x822f777735xf96xx126xx6xxx7e98caf15e1595f5ae7d60b927",
    "scope": "profile weight nutrition settings sleep social activity",
    "token_type": "Bearer",
    "user_id": "26HCT6"
}

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

A refresh token request response looks like an access token request response. An example with some obfuscation:

 

{
    "access_token": "xxXxxXxxOxJIUzI1NiJ9.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.3OXXXx-X0f0DjYzbcztrM79aYhCdk-XxX8Xxx6XX-9x",
    "expires_in": 28800,
    "refresh_token": "xx019103x352x822f777735xf96xx126xx6xxx7e98caf15e1595f5ae7d60b927",
    "scope": "profile weight nutrition settings sleep social activity",
    "token_type": "Bearer",
    "user_id": "26HCT6"
}
Best Answer
0 Votes