Skip to main content

LcpAuthHandler

type LcpAuthHandler = (request) => Promise<string | undefined>;

Answers a passphrase request; see LCP.setAuthenticationHandler. Resolve with the passphrase, in clear text or as its SHA-256 hex hash, or undefined to give up.

Parameters​

ParameterType
requestLcpAuthRequest

Returns​

Promise<string | undefined>