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 NDK have support for Nostr Login? #234

Closed
aaronkopplin opened this issue Jun 5, 2024 · 1 comment
Closed

Does NDK have support for Nostr Login? #234

aaronkopplin opened this issue Jun 5, 2024 · 1 comment

Comments

@aaronkopplin
Copy link

Hi there,

Before doing anything with nostr, the user needs to log in. Does NDK provide support for this? If so, please make it more obvious in the readme and or provide an example of a simple implementation.

If not, please make that explicit in the readme as well. would save time for new Nostr devs that dont know what theyre doing (like me!)

Thanks!

@pablof7z
Copy link
Collaborator

pablof7z commented Jun 5, 2024

hi

there is no such thing as "logging in" in nostr, since there are no nostr accounts. You just sign events with a key, that's the closest you can get to "logging in".

What you are looking for are "signers", of which there are multiple, NDKPrivateKeySigner, NDKNip07Signer, NDKNip46Signer, have a look at those and let me know here if you have more questions ;)

@pablof7z pablof7z closed this as completed Jun 5, 2024
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

2 participants