Interface WebAuthn4JSEvents

Events emitted by WebAuthn4JS instances.

interface WebAuthn4JSEvents {
    error: ((err) => void);
    exit: ((code) => void);
}

Properties

Properties

error: ((err) => void)

Emitted if an error occurs.

Type declaration

    • (err): void
    • Emitted if an error occurs.

      Parameters

      • err: Error

        The error that occurred.

      Returns void

Param: err

The error that occurred.

exit: ((code) => void)

Emitted if the Web Assembly library used by WebAuthn4JS exits. After this event has been emitted, the WebAuthn4JS instance which emitted it must no longer be used.

Type declaration

    • (code): void
    • Emitted if the Web Assembly library used by WebAuthn4JS exits. After this event has been emitted, the WebAuthn4JS instance which emitted it must no longer be used.

      Parameters

      • code: number

        Status code the Web Assembly exited with.

      Returns void

Param: code

Status code the Web Assembly exited with.

Generated using TypeDoc