mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
refactor: simplify provider oauth prompts
This commit is contained in:
@@ -25,12 +25,10 @@ export function createVpsAwareOAuthHandlers(params: {
|
||||
if (params.isRemote) {
|
||||
params.spin.stop("OAuth URL ready");
|
||||
params.runtime.log(`\nOpen this URL in your LOCAL browser:\n\n${url}\n`);
|
||||
manualCodePromise = params.prompter
|
||||
.text({
|
||||
message: manualPromptMessage,
|
||||
validate: validateRequiredInput,
|
||||
})
|
||||
.then((value) => String(value));
|
||||
manualCodePromise = params.prompter.text({
|
||||
message: manualPromptMessage,
|
||||
validate: validateRequiredInput,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -47,7 +45,7 @@ export function createVpsAwareOAuthHandlers(params: {
|
||||
placeholder: prompt.placeholder,
|
||||
validate: validateRequiredInput,
|
||||
});
|
||||
return String(code);
|
||||
return code;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user