I'm writing an app that uses OAuth. I know I can store the auth token using accountManager.setAuthToken
, but where do I store the refresh token? I suppose I could use accountManager.setUserData
or shared preferences, but they both seem hackish.
Suggestions?
Why not change the type and set it in same Account?
accountManager.setAuthToken(account, "SECURE", secureToken);
accountManager.setAuthToken(account, "REFRESH", refreshToken);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With