Store user login/passwords locally


#1

Hello,

I’m looking to implement a user login feature in my app. So far, I haven’t implemented any cloud sync database so everything is stored locally on the user’s iPhone. Considering that I do plan on supporting Realm Sync in the future, what’s the best way to store user login/password for now? Is it okay to store them in the user’s local Realm database?

Thanks!


(jay) #2

You should generally not store authentication information in the clear - relying on some kind of authentication system is your best bet. Realm offers user authentication and there are several others as well, Firebase for example.

For what reason do you want to store that information in Realm?


#4

Thanks for clarifying.