Why do I have to refresh the credentials every time with the updated SDF?
a
Ali Syed (NS DevTools QA)
08/14/2024, 12:22 PM
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
battk
08/14/2024, 3:22 PM
@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
NickSuite
08/14/2024, 7:13 PM
@Ali Syed (NS DevTools QA) this made things bad for me.
a
Ali Syed (NS DevTools QA)
08/14/2024, 9:35 PM
@NickSuite How so? Want to learn whats not working for you!
Ali Syed (NS DevTools QA)
08/14/2024, 9:57 PM
@battk We are using refresh token to get access_tokens.
I am double checking the with relative regarding the TTL of refresh token!