happy icon indicating copy to clipboard operation
happy copied to clipboard

print authentication URL if browser can't open

Open d2orbc opened this issue 1 year ago • 4 comments

I'm running it in a devcontainer, there's no xdg-open or whatever for a browser.

Web Authentication

Opening your browser...
✓ Browser opened

Complete authentication in your browser window.

Waiting for authentication...   

d2orbc avatar Aug 18 '25 06:08 d2orbc

Can you do this via phone instead? You can export/import keys between devices

ex3ndr avatar Aug 18 '25 18:08 ex3ndr

How would I do that? Export my key from one device to another, then sign in via my phone, and the sessions will show up on any of those devices that share the same private key?

It would be great if I could send the link to another device like a laptop.

d2orbc avatar Aug 18 '25 18:08 d2orbc

The flow:

  • You install mobile app, copy the account secret to computer
  • You go to web on your computer, restore account with this secret key

Now you can authenticate device with both web and mobile and they will all share keys.

ex3ndr avatar Aug 18 '25 18:08 ex3ndr

When 0.8.0 ships you should always see the browser authentication URL printed out for you to copy and paste.

I made the change in https://github.com/slopus/happy-cli/commit/92bda01d5213b4aaa5f6b15aa920c4c26e178f62, but it has not been published yet.

GrocerPublishAgent avatar Aug 23 '25 07:08 GrocerPublishAgent