arco-design / arco-cli

CLI tool for Arco Design
https://arco.design/docs/material/guide
MIT License
203 stars 76 forks source link

Providing `arco login` on a remote machine #5

Closed cytvictor closed 11 months ago

cytvictor commented 2 years ago

Basic Info

https://github.com/arco-design/arco-cli/blob/main/packages/arco-cli-auth/src/login.ts#L66

现有案例

N/A

预期解决问题

When arco login or arco env --switch on a remote machine, the post-login redirection to http://localhost:3333/login_result is impossible to succeed since arco login is listening on a remote devbox instead of localhost.

额外补充

Suggested solution: Grab all IP addresses of the os and prompt user with selection or manual input