samples icon indicating copy to clipboard operation
samples copied to clipboard

[compass_app] token refresh feature

Open morismoze opened this issue 7 months ago • 0 comments

Is there a possibility compass_app would get token refresh feature? Would love to see two things codewise:

  1. How the token refresh feature would be implemented with the used architecture.
  2. How can AuthRepository's _isAuthenticated field be changed outside of AuthRepository class. For example, if any part of token refresh fails, logical step would be to logout the user, and send them to the login page. Redirect to login page is currently being done via refreshListenable and redirect which listens to isAuthenticated getter. So if the token refresh fails for any reason, _isAuthenticated should be set to false, and that would be done on the ApiClient. Would love to see how would that be done.

Thanks for your time.

morismoze avatar Jun 01 '25 22:06 morismoze