Authentication in LazyDB

Register new users

Registering new users in LazyDB is really simple, you only need to use the register function which is available in all the LazyDB connectors.

The function takes 3 arguments, the email (which should be unique too), the password and the username (which should be unique). Then optionally you can use the 4th optional argument for the full name.

db.register("email", "password", "username", "full_name").then(() => { console.log("register done!"); }).catch(error => { console.error(error); })