nikivdev/code · error
Touch ID is not available on this device
Error message
Touch ID is not available on this device
What it means
Error "Touch ID is not available on this device" thrown in nikivdev/code.
Source
Thrown at src/env.rs:584
ok = success;
done = true;
}});
const runLoop = $.NSRunLoop.currentRunLoop;
while (!done) {{
runLoop.runUntilDate($.NSDate.dateWithTimeIntervalSinceNow(0.1));
}}
$.exit(ok ? 0 : 1);"#
);
let status = Command::new("osascript")
.args(["-l", "JavaScript", "-e", &script])
.status()
.context("failed to launch Touch ID prompt")?;
match status.code() {
Some(0) => Ok(()),
Some(1) => bail!("Touch ID verification failed"),
Some(2) => bail!("Touch ID is not available on this device"),
_ => bail!("Touch ID verification failed"),
}
}
fn unlock_env_read() -> Result<()> {
if !cfg!(target_os = "macos") {
println!("Touch ID unlock is not available on this OS.");
return Ok(());
}
if let Some(entry) = load_env_unlock() {
if let Some(expires_at) = unlock_expires_at(&entry) {
if expires_at > Utc::now() {
let local_expiry = expires_at.with_timezone(&Local);
println!(
"Env read access already unlocked until {}",
local_expiry.format("%Y-%m-%d %H:%M %Z")
);View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/env.rs:584 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/56a44dbf38dc227e.
Report an issue: GitHub.