The basic idea of NimbleLocalAuthentication is that we want to wrap the LocalAuthentication framework. Developer can easily authenticate users biometrically or with a passphrase.
Some awesome features of NimbleLocalAuthentication:
- Support enable or disable the biometric feature on the application.
- Easy to localized strings on biometric screens.
You can check out more about the SDK in this document generated by jazzy
We have a sample project in the repository. To use it, download the repo, run pod install
in Example folder to download the required libraries and open Example.xcworkspace.
For NimbleLocalAuthentication
, use the following entry in your Podfile:
pod 'NimbleLocalAuthentication', '~> 1.0'
Then run pod install
Using NimbleLocalAuthentication
is really simple. You can access an API like this:
let biometryService: BiometryService = NimbleLocalAuthenticator()
biometryService.authenticate { [weak self] result in
DispatchQueue.main.async {
switch result {
case .success:
// do something after authenticate successfully
case .failure(let error):
// hackers are trying to authenticate :D
}
}
}
This project is Copyright (c) 2014-2021 Nimble. It is free software, and may be redistributed under the terms specified in the LICENSE file.
This project is maintained and funded by Nimble.
We love open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.