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?
Hey! Are you using typescript? I think I had the same issue. Sometimes typings break and cause such issues even though the sdk itself still constains the function.
As we can see in here the sdk should contain this function.
So we can cheese it for now
await (app.currentUser as any).refreshAccessToken();