Why do I have to refresh the credentials every tim...
# sdf
n
Why do I have to refresh the credentials every time with the updated SDF?
a
You are asked to re-authorize because of OAuth 2. The token expires after few hours and we use refresh token to get new access token. The validaity of refresh token is probably about a day. So after a day when you trigger a command, the re-authorization flow will be triggered and you will have to put your login details in the browser, and hopefully just click on
continue
.
b
@Ali Syed (NS DevTools QA) Refresh Token POST Request to the Token Endpoint is how you would get a new access token, lengthening the usefulness of oauth 2 authorization code grant from 1 hours to a week.
☝🏻 1
☝️ 2
n
@Ali Syed (NS DevTools QA) this made things bad for me.
a
@NickSuite How so? Want to learn whats not working for you!
@battk We are using refresh token to get access_tokens. I am double checking the with relative regarding the TTL of refresh token!