Keycloak JavaScript Adapter "UpdateToken(minavailabity)" method Explanation , will this function use refreshToken to generate new accessToken

Hi,
I have installed keycloak-js in our react application to authenticate the user.
For token renewal implmentation iam using UpdateToken(minavailabity) this is check the minimum availabity time and then it will generate new access and refresh token , the required flow was working fine .
But the only question is in documents it’s not mentioned the updateToken() function will used refresh token to generate new accesstoken.

Will this function use refresh token explicitly and generate new access and refresh token?

Thank you,
Saif

Yes, it uses the refresh token.

1 Like

hi @dasniko ,

Thank you for the confirmation.