fix(auth): guard temporary token refresh and translate bill flow
This commit is contained in:
1 parent
2b467dc076
commit
3f015d8e22
12 files changed
+238
-20
No files matched your search
@@ -240,6 +240,8 @@ async function handleImport(parsed: CliParsedArgs, runtime: CliRuntime): Promise
|
||||
let staffId = stringOption(parsed.options, ["staff", "staffId"]);
|
||||
let name = stringOption(parsed.options, ["name"]);
|
||||
const overwrite = booleanOption(parsed.options, ["overwrite", "force", "f"], false);
|
||||
const ttl = stringOption(parsed.options, ["ttl"]);
|
||||
const expires = stringOption(parsed.options, ["expires", "days"]);
|
||||
|
||||
if (!raw && !accessToken && process.stdin.isTTY) {
|
||||
raw = await prompt("请粘贴抓包文本 / cURL 命令行 / 协助免密 URL (直接回车则手动逐项输入): ");
|
||||
@@ -270,6 +272,8 @@ async function handleImport(parsed: CliParsedArgs, runtime: CliRuntime): Promise
|
||||
name,
|
||||
baseUrl,
|
||||
overwrite,
|
||||
ttl,
|
||||
expires,
|
||||
source: raw && (raw.startsWith("http://") || raw.startsWith("https://")) ? "link" : undefined,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user