near / near-cli

General purpose command line tools for interacting with NEAR Protocol
https://docs.near.org
MIT License
193 stars 93 forks source link

NEAR CLI is shown as "Unknown App" during the login #1011

Open volovyks opened 2 years ago

volovyks commented 2 years ago

Screenshot 2022-08-10 at 14 32 26

Wallet made a breaking change and now accepts the referer parameter in the header instead of a URL parameter. As @MaximusHaximus said, it was done to prevent phishing attacks.

The current design does not allow us to add this parameter as a header, because we are constructing the URL and opening it in the browser.

Related logic: https://github.com/near/near-cli/blob/master/index.js#L123

cc @frol it is broken in RUST CLI as well.