@tokamakdev/plugin-local-authentication 0.1.0-beta.126 → 0.1.0-beta.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokamakdev/plugin-local-authentication",
3
- "version": "0.1.0-beta.126",
3
+ "version": "0.1.0-beta.127",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/mantty/tokamak.git",
@@ -13,7 +13,7 @@
13
13
  "./android": "./android/bindings.ts"
14
14
  },
15
15
  "peerDependencies": {
16
- "@tokamakdev/plugin": "0.1.0-beta.126"
16
+ "@tokamakdev/plugin": "0.1.0-beta.127"
17
17
  },
18
18
  "files": [
19
19
  "android",
package/src/index.ts CHANGED
@@ -20,6 +20,10 @@ class LocalAuthentication extends Plugin {
20
20
  return this.call("status", { authentication });
21
21
  }
22
22
 
23
+ /**
24
+ * Asks the device owner to authenticate. Rejects with `NeedsUIError` off screen on iOS and
25
+ * Android, where the system cannot show its prompt.
26
+ */
23
27
  authenticate(authentication: Authentication, options: AuthenticateOptions): Promise<void> {
24
28
  return this.call("authenticate", { authentication, prompt: options.prompt });
25
29
  }
@@ -43,13 +43,5 @@
43
43
  "api": {
44
44
  "module": "src/index.ts",
45
45
  "export": "localAuthentication"
46
- },
47
- "operations": {
48
- "authenticate": {
49
- "foreground": [
50
- "ios",
51
- "android"
52
- ]
53
- }
54
46
  }
55
47
  }