validateCredentials
Validates customers' credentials.
It performs the SSO login as per the validateCredentials documentation.
Signature
declare function validateCredentials(
context: BigcommerceIntegrationContext,
params: ValidateCredentialsParameter
): Promise<ValidateCredentialsResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | BigcommerceIntegrationContext | |
params | Required | ValidateCredentialsParameter |
Returns
Returns a response indicating if the credentials are valid
Referenced Types
Examples
Verifying the credentials
import { sdk } from '~/sdk.config.ts';
const validateCredentialsResponse = await sdk.bigcommerce.validateCredentials({ email: 'test@test.com', password: 'pa55w0rd' });