Skip to content

JakeJeong/IKBiometricAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IKBiometricAuth

Made it easy to use the biometric authentication function.

Sample usage

    // case 1
    IKBiometricAuthResult * result;
    IKBiometricAuth.showAuthenticationWithResult(&result,BiometricAuthWithPasscode,@"reason",@"fallbackTitle");
    if (result.resultType == AuthenticationSuccess) {
        // @"Success";
    } else {
        // [NSString stringWithFormat:@"[Failed] \n%@",result.message];
    }

    // case 2
    IKBiometricAuthResult * result = IKBiometricAuth.showAuthentication(BiometricAuthWithPasscode, @"reason", @"fallbackTitle");
    if (result.resultType == AuthenticationSuccess) {
        // @"Success";
    } else {
        // [NSString stringWithFormat:@"[Failed] \n%@",result.message];
    }

    // case 3
     IKBiometricAuth.showAuthenticationWithResultBlock(BiometricAuthWithPasscode,self.reason, self.fallbackTitle, ^(IKBiometricAuthResult * _Nonnull result) {
        if (result.resultType == AuthenticationSuccess) {
            // @"Success";
        } else {
           // [NSString stringWithFormat:@"[Failed] \n%@",result.message];
        }
    });

Info.plist

 //Set 'NSFaceIDUsageDescription' in the Info.plist.
 NSFaceIDUsageDescription

CocoaPods

  • pod 'IKBiometricAuth'
  • Import the Framework with import IKBiometricAuth

Author

JakeJeong - jikturbo@gmail.com

License

IKBiometricAuth is available under the MIT license. See the LICENSE file for more info.

About

Made it easy to use the biometric authentication function.

Resources

License

Stars

Watchers

Forks

Packages

No packages published