Open sync-by-unito[bot] opened 2 years ago
I believe that:
await app.emailPassword.registerUser({email, password});
Is a bit ambiguous. I would like to rethink the entire authentication flow to be more ergonomic and break it even more than just renaming some parts of it.
Authentication in Realm is wrapped in nested namespaces, which makes the process not entirely straightforward. I believe we should rethink the way authentication is done and come up with a more ergonomic interface.
For example:
In most cases, all required parameters for authentication are nested. Perhaps something like: