Refresh JWT tokens in React-Native using Api-Sauce

How to refresh token every 5 minutes using api-sauce. Anyone here has implemented that?

After the token expires, you’ll need to request a new token using the refresh token . Then, you need to use the freshly retrieved token for the next API requests.