Username/Password limitations


What are the limitations (length, allowed characters, etc) of usernames and passwords of SyncUsers?

I’m planning on building an app where the user simply enables sync and a username/password pair is generated for them by the app. Those credentials can then be transferred to other devices but are never actually known to the user. So I want to created the longest/most complex values possible but need to know the limits.


There are no limits, but obviously it’d be inefficient if you copy pasted War and Piece as a password.


are the characters also not limited? I’m using Swift so will anything that is a valid String in Swift be accepted?


Correct - anything that would be a valid Realm string is acceptable, including emojis (although I’m not sure that’s a great idea).