mirror of
https://github.com/quexten/goldwarden.git
synced 2024-12-18 16:11:31 +03:00
27 lines
409 B
Go
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
|
|
}
|