externalPassword property to store the password hash for the external customer account. You can then use this action, which runs during authentication, to code a function that verifies that the hashed version of a cleartext password provided by a shopper matches the external password hash for the account.
| Action Type | Embedded |
|---|---|
| Full Action ID | embedded.commerce.customer.accounts.verifyExternalPassword |
| Runs multiple custom functions? | No |
JavaScript File Structure
Action files share the following basic structure:callback—This argument follows the established JavaScript callback pattern: it takes an error as the first argument (or null if there is no error) and a result as the second argument (if required).
context—This argument provides the function access to relevant objects and methods that interface with Kibo.
Context: Password
The methods and objects documented here are available to this action through the use of thecontext argument.
Microservice OperationThis action corresponds to the microservice that verifies an external password.
Get
get.clearTextPassword
Returns the cleartext password from an auth-token request.
Example:
get.externalPassword
Returns the external password hash stored on the customer record.
Example:
Exec
exec.setSuccess
Indicates to the caller that the cleartext password matches the external password value (when hashed using the same mechanism that generated the value stored in externalPassword).
Example:
Context Objects Available to All Actions
apiContext
Accesses Kibo eCommerce tenant information.
Example:
configuration
Receives a JSON response that contains information about the configuration data set in the Action Management JSON editor.
Example:

