You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/b2b/client.ts
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,10 @@ interface LoginWithB2BParams {
12
12
constENV=z
13
13
.object({
14
14
env: z.object({
15
-
B2B_API_TOKEN: z.string(),
16
15
BIGCOMMERCE_CHANNEL_ID: z.string(),
16
+
BIGCOMMERCE_STORE_HASH: z.string(),
17
+
BIGCOMMERCE_ACCESS_TOKEN: z.string().optional(),
18
+
B2B_API_TOKEN: z.string().optional().describe('This is deprecated in favour or BIGCOMMERCE_ACCESS_TOKEN, read https://support.bigcommerce.com/s/article/Store-API-Accounts?language=en_US'),
console.warn('This is deprecated in favour or BIGCOMMERCE_ACCESS_TOKEN, read https://support.bigcommerce.com/s/article/Store-API-Accounts?language=en_US')
46
+
}else{
47
+
thrownewError('No B2B API token or BigCommerce token found in environment variables.');
0 commit comments