0

I am working on android project using MVVM kotlin and it is an app with payment methods connected to an online API, my question is:is it secure to save the user login information in a sharedPreference? and if not, what is the best secure method?

either SharedPreferences or room database

store the user information securely in local storage

Ali Ahmed
  • 2,425
  • 2
  • 8
  • 13
  • check out this answer https://stackoverflow.com/questions/1925486/android-storing-username-and-password – Rafa Aug 22 '19 at 15:26

1 Answers1

1

I would say that neither SharedPreferences or Room db, are good solutions for what you want. I'm assuming you want to store sensible information and not only the user login.

Google have a dedicated guide to Remember and authenticate users, that might be what you are looking for.

Nuno Lucas
  • 83
  • 7