-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Doc] how can one find the root node of a given user? #1326
Comments
Very, very strange... If I change the above code to
then everything works as foreseen... Does anybody know why I can't |
Bit late here, but perhaps this has to do with how nodes can be awaited: in short:
async () => {
const node = gun.get("some-key-here");
return {node}; // we must wrap so that awaiting it will not cause us to promisify the node.
} |
If you have the user's username and password, you can authenticate first using GunUser.auth(username, password) And then get or put on that user's node using GunUser.get or GunUser.put. In short, gun.user() works as the root node for the current (logged in/authenticated) user. |
Well, it's really difficult to find the relevant bits of information in the docs - sorting out all wrong or outdated parts and collecting everything else in order to combine it to s.th. useful...
Right now, I'm trying to find the root node of a user given by an alias. This is my current unerstanding:
This gives me s.th. which looks like the contents of Alice's root node - but I cannot
.get
or.put
from there.So: how do I find a user's root node in order to inspect any public information found there?
The text was updated successfully, but these errors were encountered: