biometrics

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package biometrics confirms it's really them, with Face ID, Touch ID or a fingerprint.

nimbus native plugin add biometrics

if biometrics.Available(ctx) != biometrics.None {
	ok, err := biometrics.Confirm(ctx, "Show today's figures")
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(ctx context.Context, reason string) (bool, error)

Confirm asks them to prove it's them, saying reason. It's false if they fail or back out.

Types

type Kind

type Kind string

Kind is what the phone can do.

const (
	None        Kind = ""
	Face        Kind = "face"
	Fingerprint Kind = "fingerprint"
)

func Available

func Available(ctx context.Context) Kind

Available says which is set up on this phone. Android can't always tell which: it says Fingerprint for any strong biometric.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL