1. 首页
  2. 数据库
  3. 其它
  4. macos touchid:用于与macOS本地身份验证(例如TouchID)一起使用的本机Node.js模块 源码

macos touchid:用于与macOS本地身份验证(例如TouchID)一起使用的本机Node.js模块 源码

上传者: 2021-04-07 15:31:48上传 ZIP文件 5.61KB 热度 13次
macos-touchid 用于macOS本地身份验证(例如TouchID)的本机模块 用法 var touchid = require ( 'macos-touchid' ) if ( touchid . canAuthenticate ( ) === false ) { throw new Error ( 'No authentication method available' ) } touchid . authenticate ( 'authenticate you' , function ( err , didAuthenticate ) { if ( err ) throw err console . log ( didAuthenticate ? `You're in!` : 'You will be terminated' ) } ) 原料药 const bo
下载地址
用户评论