MiddlewareSettingsConfig
Settings provided in the middleware.config.js file.
interface MiddlewareSettingsConfig {
channelId: number;
cookie_options?: CookieOptionsList;
generateJwtPayload?: (params: GenerateJwtPayloadParams) => JwtPayload;
jwtTokenExpirationDays: number;
loginUrlType?: UrlType;
sdkSettings: MiddlewareSDKSettingsConfig;
secureCookies: boolean;
secureOrderAPIs?: boolean;
stdTTL?: number;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
channelId | Required | number | Channel ID is an identifier of a store when using a multistore feature. By default it's 1. Please use the @vue-storefront/multistore to set it depending on the domain. |
cookie_options | Optional | CookieOptionsList | Custom cookie options |
generateJwtPayload | Optional | (params: GenerateJwtPayloadParams) => JwtPayload | An optional parameter that allows to override the default JWT payload generation. |
jwtTokenExpirationDays | Required | number | JWT token expiration days. |
loginUrlType | Optional | UrlType | Indicates url type use for performing login. By default it's set to UrlType.Canonical. It could be "primary" | "canonical" | "checkout" |
sdkSettings | Required | MiddlewareSDKSettingsConfig | BigCommerce SDK settings. |
secureCookies | Required | boolean | |
secureOrderAPIs | Optional | boolean | Indicates to use secure order APIs by requiring authentication. |
stdTTL | Optional | number | Node cache standard ttl configuration in seconds. By default it's set to 86400 seconds. |