There are three types of users:

  • Visitor: A user who is not logged into your site.
  • Member: A user who is logged into your site.
  • Admin: The owner of the site.

To use the Users API, import wixUsersBackend from the wix-users-backend module:

import wixUsersBackend from 'wix-users-backend';
javascript | Copy Code

Note: The APIs in wix-users-backend are only partially functional when previewing your site. View a published version of your site to see their complete functionality.

Was this helpful?