@nacrejs/keychain
v0.0.1
Published
Nacre 的 Keychain 能力:令牌和密码的安全存放。装了才有 application.keychain
Readme
@nacrejs/keychain
A capability package for Nacre, a JavaScript runtime for iOS apps: secure storage for tokens and passwords in the keychain. It provides application.keychain. The app has it only if the project installs this package.
Install
In a Nacre project, two steps.
1. Install the package.
npm install @nacrejs/keychain2. Bring in its types at the top of the entry file.
/// <reference types="@nacrejs/types" />
/// <reference types="@nacrejs/keychain" />Effect: after you regenerate ios/ and rebuild, the app includes this capability, and 'keychain' in application is true.
Without the package, 'keychain' in application is false and application.keychain is undefined, and type checking reports it first.
For how to use it, see Keychain. For all capability packages, see Core and capability packages.
License
FSL-1.1-MIT, see LICENSE.md.
