Users

Users own and book assets.

Just provide a username and password to create a user:

stelace.users.create({
  username: 'user@example.com',
  password: 'secretPassword'
})

Note: username is unique across all your users. It can be anything that makes sense for your business: an email, a phone number or a special internal ID.

Private information

User privacy matters for Stelace. Along with privacy by design, we built Stelace relying on privacy by default concept as often as possible. We intentionally hide information related to user identity.

For instance, only the authorized staff members (having access to "private" namespace) and the user herself will see her following personal data:

  • firstname
  • lastname
  • orgName (organization name)
  • email

Stelace provides the public property displayName that can be viewed by other users.

Note: username is used for the authentication while the previous listed data are only used to know who the user is.

Authentication

To authenticate a user and perform actions with her account:

stelace.auth.login({
  username: 'user@example.com',
  password: 'secretPassword'
})

To destroy the current user authentication session:

stelace.auth.logout()