Skip to main content
Version: 1.3.0

Function: useMnemonicRecovery()

useMnemonicRecovery(options?): MnemonicRecoveryHook

Defined in: src/Mnemonic/recovery.ts:51

Hook for namespace-scoped recovery actions such as hard reset and selective clear.

Applications can use this to offer self-service recovery UX for corrupt or legacy persisted state. The hook operates on the current provider namespace.

See the Reset and Recovery guide for soft-reset and hard-reset patterns.

Parameters

ParameterTypeDescription
optionsUseMnemonicRecoveryOptionsOptional recovery callback for telemetry/auditing

Returns

MnemonicRecoveryHook

Namespace recovery helpers

Throws

If used outside of a MnemonicProvider