Home > @vsf-enterprise/bigcommerce-theme > UseUserInterface > login
# UseUserInterface.login() method
Logs in the customer based on provided username and password.
Signature:
login(credentials: AuthCustomerParams): Promise<boolean>;
# Parameters
Parameter | Type | Description |
---|---|---|
credentials | AuthCustomerParams |
Returns:
Promise<boolean>
# Remarks
Saves the details returned from the API in the customerStore
.