Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/commands/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ interface EnvVarInfo {

const ENV_VAR_CATALOG: { name: string; effect: string }[] = [
{ name: 'WORKOS_API_KEY', effect: 'Bypasses credential resolution — used directly for API calls' },
{ name: 'WORKOS_CLIENT_ID', effect: 'Overrides client ID from settings' },
{ name: 'WORKOS_FORCE_TTY', effect: 'Forces human (non-JSON) output mode, even when piped' },
{ name: 'WORKOS_NO_PROMPT', effect: 'Forces non-interactive/JSON mode' },
{ name: 'WORKOS_TELEMETRY', effect: 'Set to "false" to disable telemetry' },
Expand Down
5 changes: 0 additions & 5 deletions src/commands/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ export async function provisionStagingEnvironment(accessToken: string): Promise<
export async function runLogin(): Promise<void> {
const clientId = getCliAuthClientId();

if (!clientId) {
clack.log.error('CLI auth not configured. Set WORKOS_CLI_CLIENT_ID environment variable.');
process.exit(1);
}

// Check if already logged in with valid token
if (getAccessToken()) {
const creds = getCredentials();
Expand Down
4 changes: 0 additions & 4 deletions src/lib/run-with-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,6 @@ export async function runWithCore(options: InstallerOptions): Promise<void> {
const clientId = getCliAuthClientId();
const authkitDomain = getAuthkitDomain();

if (!clientId) {
throw new Error('CLI auth not configured. Set WORKOS_CLI_CLIENT_ID environment variable.');
}

const deviceAuth = await requestDeviceCode({
clientId,
authkitDomain,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function getConfig(): InstallerConfig {
* Env var overrides config default.
*/
export function getCliAuthClientId(): string {
return process.env.WORKOS_CLIENT_ID || config.workos.clientId;
return config.workos.clientId;
}

/**
Expand Down
Loading