//
//  NoPassRNBridgeAuthentificationiOS.m
//  SdkTest
//
//  Created by Artsiom Shmaenkov on 30.06.21.
//

#import <React/RCTBridgeModule.h>

@interface RCT_EXTERN_MODULE(NoPassRNBridgeAuthentificationiOS, NSObject)

RCT_EXTERN_METHOD(isHaveActiveAuthSession:(RCTPromiseResolveBlock) resolver
                  rejecter:(RCTPromiseRejectBlock) rejecter)

RCT_EXTERN_METHOD(getAuthComparisonContent:(NSDictionary*) authData
                  userSeed:(NSString*) userSeed
                  resolver:(RCTPromiseResolveBlock) resolver
                  rejecter:(RCTPromiseRejectBlock) rejecter)

RCT_EXTERN_METHOD(authorize:(NSString*) biometricType
                  isScreenLock:(BOOL) isScreenLock)

RCT_EXTERN_METHOD(decline:(NSString*) declineTypeString
                  biometricTypeString:(NSString*) biometricTypeString
                  isScreenLock:(BOOL) isScreenLock
                  resolver:(RCTPromiseResolveBlock) resolver
                  rejecter:(RCTPromiseRejectBlock) rejecter)

@end
