Skip to content

Commit 0e4f216

Browse files
authored
Merge pull request #7868 from continuedev/dallin/fix-auth-config-bug-cli
fix: circular import of AUTH_CONFIG_PATH
2 parents bdb5f24 + ad541f5 commit 0e4f216

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

extensions/cli/src/auth/authEnv.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import * as path from "path";
2+
3+
import { env } from "../env.js";
4+
5+
export const AUTH_CONFIG_PATH = path.join(env.continueHome, "auth.json");

extensions/cli/src/auth/workos.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ if (!globalThis.fetch) {
1212
globalThis.fetch = nodeFetch as unknown as typeof globalThis.fetch;
1313
}
1414

15-
// Config file path
16-
const AUTH_CONFIG_PATH = path.join(env.continueHome, "auth.json");
17-
1815
// Represents an authenticated user's configuration
1916
export interface AuthenticatedConfig {
2017
userId: string;
@@ -98,6 +95,7 @@ export function getModelName(config: AuthConfig): string | null {
9895
}
9996

10097
// URI utility functions have been moved to ./uriUtils.ts
98+
import { AUTH_CONFIG_PATH } from "./authEnv.js";
10199
import { autoSelectOrganizationAndConfig } from "./orgSelection.js";
102100
import { pathToUri, slugToUri, uriToPath, uriToSlug } from "./uriUtils.js";
103101
import {

0 commit comments

Comments
 (0)