Function authenticate
Source pub fn authenticate(
auth_key: &str,
reason: Option<&str>,
options: Option<&JsValue>,
) -> Result<(), JsValue>
Expand description
Calls Telegram.WebApp.BiometricManager.authenticate(auth_key, reason, options)
.
§Errors
Returns Err(JsValue)
if BiometricManager
or the method is unavailable,
or if the call fails.
§Examples
use telegram_webapp_sdk::api::biometric::authenticate;
let _ = authenticate("auth-key", None, None);