How to configure refresh token so that it does not expire

karl_cheng
Mega Contributor

Hi, I am setting up oauth on an instance, and have created a refresh token.  The documentation says that the refresh token expires in 100 days by default, and I can change it on the console.  However, I would like the token to never expire.  Is there a way to do that (would setting a value of -1 do the trick?)   

 

8 REPLIES 8

Shane Crenshaw
Kilo Contributor

Any luck figuring this out? I too see an issue and feel that we should be able to get a new refresh token without using the username and password.

I set the value to -1 which became max value, and that translate to about ~30 years.  Anyway I changed my code to use ROPC so that I don't need to worry about this issue any more.

Hey, sorry for the delayed response, but would you be able to explain how you used ROPC to solve this issue?

Yes can you share how to use ROPC for not getting expiration time for accessing the api's