samples
samples copied to clipboard
[compass_app] token refresh feature
Is there a possibility compass_app would get token refresh feature? Would love to see two things codewise:
- How the token refresh feature would be implemented with the used architecture.
- How can
AuthRepository's_isAuthenticatedfield be changed outside ofAuthRepositoryclass. 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 viarefreshListenableandredirectwhich listens toisAuthenticatedgetter. So if the token refresh fails for any reason,_isAuthenticatedshould be set tofalse, and that would be done on theApiClient. Would love to see how would that be done.
Thanks for your time.