How to get JWT token refreshed automatically when retrieving it from JS SDK?
-
Hi guys.
We are evaluating FusionAuth and are trying to apply common practices for getting/refreshing access token.Services like Auth0 or AWS Cognito provide js sdk that is responsible to returning current access token as well as refreshing it once expired, abstracting this behaviour in single SDK method (e.g. getTokenSilently).
This allows to get either active token or get refreshed one if current token expired.
Do we have a way to achieve corresponding behavior with FusionAuth JS SDK?
-
According to client library maintainers answer this is not smth available in js/ts library currently
https://github.com/FusionAuth/fusionauth-typescript-client/issues/74#issuecomment-1087919324 -
See also: The client libraries should include token management functionality.
Glen.