iOS Touch ID for Web Development

2020-03-04 09:42发布

I am currently trying to figure out a way where I can build a responsive website, however once the website loads on an iOS Device I wanted to use the new iOS Touch ID api to allow members to login. I know it is possible to do such things using Native ofcourse and also Cordova (http://cordova.apache.org/) but I want it to work as an authentication system with nearly any web development code base.

1条回答
Root(大扎)
2楼-- · 2020-03-04 09:55

There is a Apache Cordova plugin that gives you a simple Javascript API. Using it becomes a simple call like this:

 touchid.checkSupport(successCallback, notSupportedCallback);
 touchid.authenticate(successCallback, failureCallback, text);

Hope that helps

查看更多
登录 后发表回答