Creates a new WebAuthn instance
Optional
gunInstance: IGunInstance<unknown>Optional
config: Partial<WebAuthnConfig>Private
abortPrivate
Readonly
configPrivate
credentialPrivate
Optional
Readonly
gunAborts current authentication attempt
Authenticates a user with timeout and abort handling
Private
bufferConverts ArrayBuffer to URL-safe base64 string
Creates a new WebAuthn account with retry logic
Private
createCreates a WebAuthn credential for registration
Emits an event with arguments
Optional
data: unknownPrivate
generateGenerates a challenge for WebAuthn operations
Generates WebAuthn credentials
Optional
existingCredential: null | WebAuthnCredentialsPrivate
generateGenerates credentials from username and salt
Private
getPrivate
getGets platform information
Private
getGets cryptographically secure random bytes
Checks if WebAuthn is supported
Removes an event listener
Registers an event listener
Registers a one-time event listener
Removes all listeners for an event or all events
Optional
event: EventTypeRemoves device credentials
Private
saveSaves credential to GunDB
Signs data with the credential
Private
uint8Converts Uint8Array to hexadecimal string
Validates a username
Private
verifyVerifies a credential
Main WebAuthn class for authentication management