Search code examples
swiftrealmrealm-mobile-platform

Create users from client on Realm Mobile Platform


Is there anyway to create/register user with new product Realm Mobile Platform from realm.io?

Thanks!


Solution

  • The following code example is in the official docs, but I haven't tested it:

    let usernameCredential = Credential.usernamePassword(username: "username", password: "password", actions: [.createAccount])
    

    the actions: [.createAccount] indicates that yes, you can create a user from an app, if that is what you meant.