mirror of
https://github.com/quexten/goldwarden.git
synced 2025-01-10 10:02:39 +01:00
19 lines
305 B
Go
19 lines
305 B
Go
//go:build darwin
|
|
|
|
package biometrics
|
|
|
|
func CheckBiometrics(approvalType Approval) bool {
|
|
ok, err := touchid.Authenticate(approvalType.String())
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
if ok {
|
|
log.Printf("Authenticated")
|
|
return true
|
|
} else {
|
|
log.Fatal("Failed to authenticate")
|
|
return false
|
|
}
|
|
}
|