Skip to main content

key_script

Function key_script 

Source
pub fn key_script(options: &str, passkey: bool) -> String
Expand description

The script that asks the key in that page: options as Bitwarden gave them (a second step’s, or passkey_ask’s for the key alone). The answer waits in the page until taken (window.sioulKey()): for a second step, {“token”}, the step’s code; for the key alone, {“response”, “secret”}; else {“error”} (“not-allowed”: not used in time, or cancelled).