Skip to main content
BmoniEmbeddedSdk.initialize takes a single options object, and every field is optional. You can call it as many times as needed — each call replaces the active configuration.

Options

A pinLength that is not a positive integer throws a RangeError immediately.

Reading the active config

The current configuration is always accessible:
Use these in your UI to render a PIN input of the right length or hide PIN flows entirely:

requirePin: false — delegating auth elsewhere

When you manage authentication outside the SDK (biometrics, OS lockscreen, server-side challenge), set requirePin: false:
When requirePin is false, any supplied pin argument is silently ignored by signMessage, signTransactionHash, and deleteWallet. PIN management methods (setPin, changePin, etc.) still work — toggling requirePin only changes whether the stored PIN is used as a gate.

Changing the PIN length at runtime

You can change pinLength after a PIN is already set. The stored digest was created with the old length, so you need to prompt the user to remove and re-create their PIN before verification can succeed again.