Skip to content

Commit 085a797

Browse files
committed
fix: update catalyst cli with new client id
1 parent f366eff commit 085a797

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

.changeset/wise-worms-hear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bigcommerce/catalyst": patch
3+
---
4+
5+
Update the CLI with the new client id.

packages/catalyst/src/cli/commands/start.spec.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Command } from 'commander';
22
import { execa } from 'execa';
33
import { existsSync, lstatSync, symlinkSync } from 'node:fs';
4+
import { join } from 'node:path';
45
import { afterEach, beforeAll, beforeEach, expect, test, vi } from 'vitest';
56

67
import { consola } from '../lib/logger';
@@ -44,7 +45,13 @@ test('calls execa with OpenNext production optimized server', async () => {
4445

4546
expect(execa).toHaveBeenCalledWith(
4647
'pnpm',
47-
['exec', 'opennextjs-cloudflare', 'preview', '--config', '.bigcommerce/wrangler.jsonc'],
48+
[
49+
'exec',
50+
'opennextjs-cloudflare',
51+
'preview',
52+
'--config',
53+
join('.bigcommerce', 'wrangler.jsonc'),
54+
],
4855
expect.objectContaining({
4956
stdio: 'inherit',
5057
cwd: process.cwd(),

packages/catalyst/src/cli/lib/auth.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe('waitForDeviceToken', () => {
124124

125125
describe('constants', () => {
126126
test('DEVICE_OAUTH_CLIENT_ID matches create-catalyst', () => {
127-
expect(DEVICE_OAUTH_CLIENT_ID).toBe('s1q4io7mah2lm1i6uwp9yl1eit80n3b');
127+
expect(DEVICE_OAUTH_CLIENT_ID).toBe('b8063bu6hhml4e0lqh22yut63atsbyv');
128128
});
129129

130130
test('DEVICE_OAUTH_SCOPES contains expected scopes', () => {

packages/catalyst/src/cli/lib/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { z } from 'zod';
22

3-
export const DEVICE_OAUTH_CLIENT_ID = 's1q4io7mah2lm1i6uwp9yl1eit80n3b';
3+
export const DEVICE_OAUTH_CLIENT_ID = 'b8063bu6hhml4e0lqh22yut63atsbyv';
44
export const DEVICE_OAUTH_SCOPES = [
55
'store_v2_information',
66
'store_infrastructure_deployments_manage',

0 commit comments

Comments
 (0)