dio
dio copied to clipboard
How to jwt, refresh token along with interceptor in rest api call
- at login we receive access token and refresh token from server
- add access token in interceptor for other api request
- if access token is expired use the refresh token to get a new access token.
- if refresh token is expired as well then show the login page
- How to use interceptor in rest api call