Home > @vsf-enterprise/bigcommerce-theme > UseUserInterface

# UseUserInterface interface

Data and methods returned from the useUser() composable

Signature:

export interface UseUserInterface 

# Properties

Property Type Description
error Ref<UseUserErrors> Contains errors from the composable methods.
loading Ref<boolean> Indicates whether any of the methods is in progress.

# Methods

Method Description
load() Loads the current user.
login(credentials) Logs in the customer based on provided username and password.
logout() Logs out current customer. Clears customer cookies.
register(user) Create customers accounnt and logs in the user.
updateCustomer(parameters) Update current customer information.