Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android authenticator API #22

Open
russellhoff opened this issue May 22, 2020 · 0 comments
Open

Android authenticator API #22

russellhoff opened this issue May 22, 2020 · 0 comments

Comments

@russellhoff
Copy link

First, thanks for such a good work!!

I've a question for you, i don't know whether it's a feature request, suggestion or else. The API you're querying is protected by Tokens. In your application, your Token is hardcoded. What happens if your application needs the user to log in?

The token issue complicates and is a real world use case. Some people try to store tokens within SharedPreferences, but I don't think it's a good idea. I'm tackling it by using Android Accounts and Authenticator API. This is a good practice to manage accounts and tokens, since it provides mechanisms to update tokens in different situations.

It'd be nice that you could provide any example, in this project or in another. I understand this one is solely aimed to explaining the usage of MVVM arch.

Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant