Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 400 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 400 Bytes

Authenticating with TouchID

package main

import (
  "log"

  touchid "github.com/lox/go-touchid"
)

func main() {
  ok, err := touchid.Authenticate("access llamas")
  if err != nil {
    log.Fatal(err)
  }

  if ok {
    log.Printf("Authenticated")
  } else {
    log.Fatal("Failed to authenticate")
  }
}

Screenshot