File tree Expand file tree Collapse file tree
packages/cli/src/commands/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @cipherstash/cli " : minor
3+ ---
4+
5+ Fix invalid client error.
Original file line number Diff line number Diff line change @@ -27,13 +27,12 @@ export async function selectRegion(): Promise<string> {
2727 return region
2828}
2929
30- export async function login ( region : string , referrer : string | undefined ) {
30+ export async function login ( region : string , _referrer : string | undefined ) {
3131 const s = p . spinner ( )
3232
33- const pending = await beginDeviceCodeFlow (
34- region ,
35- `cli-${ referrer ?? 'cipherstash' } ` ,
36- )
33+ // Must be 'cli' — it's the only OAuth client_id registered with CTS.
34+ // Passing anything else (e.g. `cli-supabase`) causes INVALID_CLIENT.
35+ const pending = await beginDeviceCodeFlow ( region , 'cli' )
3736
3837 p . log . info ( `Your code is: ${ pending . userCode } ` )
3938 p . log . info ( `Visit: ${ pending . verificationUriComplete } ` )
You can’t perform that action at this time.
0 commit comments