Cordova iOS 指纹身份验证:将用户凭据发送到服务器

Cordova iOS FingerPrint Authentication : Sending User Credentials to Server

我知道如何使用 iOS 指纹认证机制,但我对在哪里以及如何存储用户凭证存疑。指纹通过身份验证后,我需要将用户详细信息发送到服务器。由于用户没有在任何地方输入它,我假设我必须在用户第一次输入时存储它。我在哪里安全地存储这些凭据? iOS KeyChain 是解决这个问题的方法吗?

下面是我如何为我的应用实现触控 ID。

 1. check if fingerprint is enabled : user credentials  is stored in keychain
 2. if fingerprint is enabled, prompt for fingerprint touch
 3. else show login screen
 4. if user checks "enable fingerprint" checkbox and logs in, store username and password in keychain 
 5. else login as normal

我使用了以下插件: https://github.com/sjhoeksma/cordova-plugin-keychain-touch-id