Skip to main content

Module wasm

Module wasm 

Source
Expand description

WASM bindings for the direct 1Password import.

The import calls back into the user mid sign-in: for a TOTP code, or for the single sign-on browser step and device approval. wasm_bindgen cannot express these as the &dyn callbacks the native API takes. JavaScript passes objects implementing the interfaces declared below instead, and the Js* types adapt them back to the traits.

Structsยง

CancelledEnrollment ๐Ÿ”’
The enrollment of a UI that could not show one, which cancels it right away.
JsOnePasswordSsoEnrollment ๐Ÿ”’
Adapts the JavaScript enrollment object to OnePasswordSsoEnrollment.
JsOnePasswordSsoUi ๐Ÿ”’
Adapts the JavaScript single sign-on prompts to OnePasswordSsoUi, pinned to their thread like JsOnePasswordTwoFactorUi.
JsOnePasswordTwoFactorUi ๐Ÿ”’
Adapts the JavaScript prompt to OnePasswordTwoFactorUi.
RawJsOnePasswordSsoEnrollment ๐Ÿ”’
The JavaScript object implementing a device enrollment in progress.
RawJsOnePasswordSsoUi
The JavaScript object implementing the single sign-on prompts.
RawJsOnePasswordTwoFactorUi
The JavaScript object implementing the two-factor prompt.