Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does wallet support lnurl-auth? #435

Closed
qqqzhch opened this issue Dec 1, 2021 · 2 comments
Closed

Does wallet support lnurl-auth? #435

qqqzhch opened this issue Dec 1, 2021 · 2 comments

Comments

@qqqzhch
Copy link
Contributor

qqqzhch commented Dec 1, 2021

I am using some websites that support BTC lightning network login. Support lnurl Auth in Web API or in popup will be very convenient

@bumi
Copy link
Collaborator

bumi commented Dec 1, 2021

yes, Alby supports lnurl-auth with most of the wallet connections.
You can test that for example on lnmarkets.com or stacker.news

you should be able to initiate the login flow with something like:

function login(lnurl) {
  if (!window.webln) { return false; } // fallback to whatever you want to do, e.g. show a lnurl-auth QR code
  return window.webln.enable().then(() => {
    return window.webln.lnurl(lnurl);
  });
}

@MoritzKa
Copy link
Contributor

MoritzKa commented Dec 4, 2021

@qqqzhch did it work out? Which websites do you use and/or which websites should use LNURL auth in your opinion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants