Private
Optional
_rxjsPrivate
Readonly
eventPrivate
Readonly
onStatic
ErrorsURL of the peer to add
Private
authenticateAuthenticates user after creation
Optional
pair: null | ISEAPairPrivate
buildClear session
Private
createCreates alias index following GunDB pattern: ~@alias -> userPub
Private
createCreates epub index: epubKeys/epub -> userPub
Private
createPrivate
createCreates a new user in Gun with pair-based authentication (for Web3/plugins)
Private
createCreates reverse lookup: userPub -> alias
Private
createCreates user metadata in user's own node
Private
createCreates username mapping: usernames/alias -> userPub
Private
createCreates user registry: users/userPub -> user data
Emits an event
Event name
Optional
data: anyEvent data
Recovers password hint using security question answers
Username
Array of answers to security questions
Promise resolving with the password hint
Gets a node at the specified path
Path to the node
Gun node
Gets the list of all configured peers (connected and disconnected)
Array of peer URLs
Gets all registered users (for admin purposes)
Promise resolving to array of user information
Get app scope
Gets the list of currently connected peers
Array of peer URLs
Gets the current user
Current user object or null
Gets data at the specified path (one-time read)
Path to get the data from
Promise resolving to the data
Gets the Gun instance
Gun instance
Get password hint
Gets detailed information about all peers
Object with peer information
Gets the current user instance
User instance
Gets user alias by public key
User's public key
Promise resolving to user alias or null if not found
Gets user information by alias using the comprehensive tracking system
Username/alias to lookup
Promise resolving to user information or null if not found
Gets user information by public key
User's public key
Promise resolving to user information or null if not found
Get user public key
Gets user public key by encryption public key (epub)
User's encryption public key
Promise resolving to user public key or null if not found
Initialize the GunInstance asynchronously This method should be called after construction to perform async operations
Check if user is authenticated
Checks if a user is currently logged in
True if logged in
Leave user session
Load session from storage
Performs login with username and password
Username
Password
Optional
pair: null | ISEAPairSEA pair (optional)
Promise resolving to AuthResult object
Performs login with GunDB pair directly
Username
SEA pair
Promise resolving to AuthResult object
Private
navigateHelper method to navigate to a nested path by splitting and chaining .get() calls
Starting Gun node
Path string (e.g., "test/data/marco")
Gun node at the specified path
Private
notifyRemoves an event listener
Event name
Event listener function
Adds an event listener
Event name
Event listener function
Registers an authentication callback
Function to call on auth events
Function to unsubscribe the callback
Adds a one-time event listener
Event name
Event listener function
Private
performPerforms authentication with Gun
Optional
pair: null | ISEAPairPuts data at the specified path
Path to store data
Data to store
Promise resolving to operation result
Recall user session
Optional
options: { sessionStorage?: boolean }Reconnects to a specific peer
URL of the peer to reconnect
Removes data at the specified path
Path to remove
Promise resolving to operation result
Removes a peer from the network
URL of the peer to remove
Clears all peers and optionally adds new ones
Optional
newPeers: string[]Optional array of new peers to add
Attempts to restore user session from local storage
Promise resolving to session restoration result
Private
runPrivate
saveSave session to storage
Sets data at the specified path
Path to store data
Data to store
Promise resolving to operation result
Set password hint
Sets up security questions and password hint
Username
Current password
Password hint
Array of security questions
Array of answers to security questions
Promise resolving with the operation result
Private
setupSets up comprehensive user tracking system for agile user lookup Creates multiple indexes for efficient user discovery
Set user data
Signs up a new user using direct Gun authentication
Username
Password
Optional
pair: null | ISEAPairOptional SEA pair for Web3 login
Promise resolving to signup result
Private
subscribeUpdates user's last seen timestamp
User's public key
Private
validateValidates password strength according to security requirements
Private
validate
Adds a new peer to the network