我有用户验证逻辑。
...
const i = rl.createInterface(process.stdin, process.stdout);
i.question(`Please, visit an url ${url} and enter a verifier: ', verifier => {
i.close();
process.stdin.destroy();
...
现在我在控制台中输入代码。
为了授权,我有一个路由器http://localhost:8081/api/authorization/
我怎样才能改变它,以便服务器等待用户点击按钮,然后代码来找我http://localhost:8081/api/authorization?12345
。
1 个回答