You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,29 @@
1
-
# NativeScript Touch ID Plugin
2
-
3
-
Use the iOS fingerprint scanner in your {N} app.
1
+
# NativeScript Fingerprint authentication Plugin
2
+
Formerly known as `nativescript-fingerprint-auth`
4
3
5
4
<imgsrc="images/fingerprint.png" />
6
5
7
6
### Use when
8
7
* You want to know if the device runing your app has enrolled for [Touch ID](https://support.apple.com/en-us/HT201371),
9
-
* You want to leverage the TouchID sensor in your {N} app.
8
+
* You want to leverage a fingerprint scanner in your {N} app.
10
9
11
10
## Installation
12
11
From the command prompt go to your app's root folder and execute:
13
12
```
14
-
tns plugin add nativescript-touchid
13
+
tns plugin add nativescript-fingerprint-auth
15
14
```
16
15
17
16
## Usage
18
17
19
-
If you want a quickstart, [clone our demo app](https://github.com/EddyVerbruggen/nativescript-touchid-demo).
18
+
If you want a quickstart, [clone our demo app](https://github.com/EddyVerbruggen/nativescript-fingerprint-auth-demo).
20
19
21
20
Want a nicer guide than these raw code samples? Read [Nic Raboy's blog post about this plugin](https://www.thepolyglotdeveloper.com/2016/03/add-touch-id-authentication-support-to-your-nativescript-app/).
@@ -34,9 +33,10 @@ Want a nicer guide than these raw code samples? Read [Nic Raboy's blog post abou
34
33
### function: verifyFingerprint
35
34
36
35
```js
37
-
touchid.verifyFingerprint({
38
-
message:'Scan yer finger', // optional, shown in the fingerprint dialog (default on ios: 'Scan your finger', default on android: 'We are doing this for your own security.').
39
-
title:'Android title'// optional title for android,(default: 'Please confirm your credentials.')
36
+
fingerprintAuth.verifyFingerprint({
37
+
title:'Android title', // optional title (used only on Android)
38
+
message:'Scan yer finger', // optional (used on both platforms)
39
+
authenticationValidityDuration:10// optional (used on Android, default 0)
40
40
}).then(
41
41
function() {
42
42
console.log("Fingerprint was OK");
@@ -52,7 +52,7 @@ Want a nicer guide than these raw code samples? Read [Nic Raboy's blog post abou
0 commit comments