Skip to main content

register()

Register a new user.

const { user, token, error } = await kontenbase.auth.register({
firstName: 'Ega',
lastName: 'Radiegtya',
email: '[email protected]',
password: 'password',
})
note
  • First registered user will have "admin" role
  • token returned is a Bearer Token Authentication that can be set in the header