dio icon indicating copy to clipboard operation
dio copied to clipboard

How to jwt, refresh token along with interceptor in rest api call

Open Harshk16 opened this issue 2 years ago • 0 comments

  1. at login we receive access token and refresh token from server
  2. add access token in interceptor for other api request
  3. if access token is expired use the refresh token to get a new access token.
  4. if refresh token is expired as well then show the login page
  5. How to use interceptor in rest api call

Harshk16 avatar Apr 18 '22 10:04 Harshk16