Optional_categoryCategoria del plugin
ProtectedcoreRiferimento all'istanza di ShogunCore
Descrizione opzionale del plugin
Nome univoco del plugin - deve essere implementato dalle sottoclassi
PrivatesignerVersione del plugin - deve essere implementata dalle sottoclassi
PrivatewebauthnInterrompe un tentativo di autenticazione in corso
ProtectedassertVerifica che il plugin sia stato inizializzato prima di usare il core
L'istanza di ShogunCore non null
PrivateassertPrivateAssicura che il signer sia inizializzato
PrivateassertAutentica un utente con WebAuthn
Nome utente
Salt per l'autenticazione
Optionaloptions: anyOpzioni per l'operazione
Promise con il risultato dell'autenticazione
Crea un nuovo account WebAuthn
Nome utente
Credenziali WebAuthn
Flag che indica se è un nuovo dispositivo
Promise con il risultato dell'operazione
Creates a Gun user from WebAuthn signing credential This ensures the SAME user is created as with normal approach
Distrugge il plugin e libera le risorse
Emits an event with arguments
Optionaldata: unknownGenera credenziali WebAuthn
Nome utente
OptionalexistingCredential: null | WebAuthnCredentialsCredenziali esistenti (opzionale)
Flag che indica se è per login
Promise con il risultato dell'operazione
PrivategeneratePrivateGenera un pair SEA dalle credenziali WebAuthn
Get the Gun user public key for a signing credential
Get the hashed credential ID (for consistency checking)
Get seed phrase for current user (if stored) Note: Seed phrases are NOT stored by default for security Users should save their seed phrase during registration
Username
Seed phrase or null
Import existing account from seed phrase Allows accessing the same account across multiple devices
Username
12-word BIP39 mnemonic seed phrase
Registration result
Inizializza il plugin con un'istanza di ShogunCore
Istanza di ShogunCore
Verifica se WebAuthn è supportato nel browser corrente
true se WebAuthn è supportato, false altrimenti
Login with WebAuthn This is the recommended method for WebAuthn authentication
Username
Authentication result
Removes an event listener
Registers an event listener
Registers a one-time event listener
Removes all listeners for an event or all events
Optionalevent: EventTypeRimuove un dispositivo WebAuthn
Nome utente
ID della credenziale
Credenziali WebAuthn
Promise con il risultato dell'operazione
Complete oneshot workflow that creates the SAME Gun user as normal approach This is the recommended method for oneshot signing with full consistency
Register new user with WebAuthn This is the recommended method for WebAuthn registration
Username
Optionaloptions: { generateSeedPhrase?: boolean; seedPhrase?: string }Optional signup options (seed phrase support)
Registration result with optional seed phrase
Verify consistency between oneshot and normal approaches This ensures both approaches create the same Gun user
OptionalexpectedUserPub: string
Plugin per la gestione delle funzionalità WebAuthn in ShogunCore