How / where to store update token on Android?

I am writing an application using OAuth. I know that I can store the authentication token using accountManager.setAuthToken , but where can I store the update token? I suppose I could use accountManager.setUserData or general settings, but they both seem hacky.

Suggestions?

+5
source share
2 answers

Why not change the type and set it in the same account?

 accountManager.setAuthToken(account, "SECURE", secureToken); accountManager.setAuthToken(account, "REFRESH", refreshToken); 
0
source

I think you can save it as a password.

-1
source

Source: https://habr.com/ru/post/1204712/


All Articles