Open quarryman opened 2 years ago
@quarryman FusionAuth's client libs are pretty close to the metal and don't currently offer that functionality.
I'd be happy to review a PR.
thanx for being responsive @mooreds At this stage we are evaluating FusionAuth, I would consider PR if we find match with the library. Thanx!
No worries, @quarryman !
We can leave this open and see if other community members chime in and want it.
Hi team.
I am trying to mimic SDK behavior available in Auth0 js client or AWS Cognito js client (Amplify), which both provide SDK method to retrieve current token or automatically refresh it silently and return refreshed one, so that one dont have to handle expiration manually.
Auth0 will always return current(refreshed if needed) token with
Auth0.getTokenSilently()
Cognito provides similar approach with
const session = await Auth.currentSession().getAccessToken();
Again, it will refresh token if expired under the hood
Is there smth similar in FusionAuth js client that will abstract getting fresh token flow into single function?