MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getQwenCachedCredentialPath

Function getQwenCachedCredentialPath

src/api/providers/qwen-code.ts:38–47  ·  view source on GitHub ↗
(customPath?: string)

Source from the content-addressed store, hash-verified

36}
37
38function getQwenCachedCredentialPath(customPath?: string): string {
39 if (customPath) {
40 // Support custom path that starts with ~/ or is absolute
41 if (customPath.startsWith("~/")) {
42 return path.join(os.homedir(), customPath.slice(2))
43 }
44 return path.resolve(customPath)
45 }
46 return path.join(os.homedir(), QWEN_DIR, QWEN_CREDENTIAL_FILENAME)
47}
48
49function objectToUrlEncoded(data: Record<string, string>): string {
50 return Object.keys(data)

Callers 2

doRefreshAccessTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected