goldwarden/agent/systemauth/biometrics/touchid.go
2023-09-19 22:32:15 +02:00

27 lines
409 B
Go

//go:build darwin
package biometrics
import (
touchid "github.com/lox/go-touchid"
)
func CheckBiometrics(approvalType Approval) bool {
ok, err := touchid.Authenticate(approvalType.String())
if err != nil {
log.Error(err.Error())
}
if ok {
log.Info("Authenticated")
return true
} else {
log.Error("Failed to authenticate")
return false
}
}
func BiometricsWorking() bool {
return false
}