Realm-js refresh access token

Hey

I was trying to implement Authentication using realm-js.
My past experience was with realm-web where currentUser would have a method called refreshAccessToken()

my issue is that the currentUser that realm-js creates has no such method … so how do i refresh the token when it expires?

thanks