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