0.2.19 • Published 1 year ago

pulmuone-rn-bio v0.2.19

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

pulmuone-rn-bio

풀무원 생체인증 ReactNative 모듈

Installation

npm install pulmuone-rn-bio

Setting

AOS Project 설정

  1. app/build.gradle 설정
    • minimumSDK 23 이상
    • targetSDK 31 이상
  2. AndroidManifest.xml 설정

    • MainActivity에 exported=true 설정이 있는지 확인. 없으면 추가해줘야 합니다.

iOS Project 설정

  • 생체인증 모듈중 Face ID를 사용하기 위해서는 Info.plist 에 아래와 같은 필드를 추가 하여야 합니다.
<key>NSFaceIDUsageDescription</key>
<string>생체인증을 위해 사용됩니다.</string>

생체인증 권한 설정

simulator에서 미동작. 실물기기에서 확인 필수

Api

  1. Device 생체인증 기능 제공 여부 조회
import { isSupportBiometrics } from "pulmuone-rn-bio";
let result = await isSupportBiometrics();
  1. Device 설정 화면 이동
import { moveSetting } from "pulmuone-rn-bio";
moveSetting();
  1. 생체인증 등록여부 조회
import { isRegisterBiometrics } from "pulmuone-rn-bio";
let result = await isRegisterBiometrics();
  1. 생체인증 등록 요청
import { registerBiometrics } from "pulmuone-rn-bio";
let reuslt = await registerBiometrics('생체인증 등록');
  1. 생체인증 서명 요청
import { signBiometrics } from "pulmuone-rn-bio";
let reuslt = await registerBiometrics('생체인증 서명');
  1. 등록된 생체인증 정보 삭제 요청
import { removeBiometrics } from "pulmuone-rn-bio";
removeBiometrics();
  1. 등록된 생체인증 사용여부 설정값 조회
import { isUseBiometrics } from "pulmuone-rn-bio";
let result = await isUseBiometrics();
  1. 등록된 생체인증 사용여부 설정
import { changeUseBiometrics } from "pulmuone-rn-bio";
changeUseBiometrics(false, (result) => {
    // 사용여부 
});

BioErrorType

typedescription
success성공
cancel사용자가 인증을 취소 하였습니다.
deviceLockout생체인증 시도한 실패 횟수가 너무 많아 생체인증을 사용할수 없습니다.
deviceNotEnrolled기기에 등록된 생체 인증 정보가 없습니다. 기기에 생체인증 등록후 이용 가능합니다.
deviceNotAvailable기기에서 생체 인식을 사용할 수 없습니다.
deviceNotSupported생체인증을 지원하지 않는 기기입니다.
appBioNotRegister앱에 등록된 생체인증 정보가 없습니다. 앱에 생체인증 등록후 이용해 주세요.
existBiometrics이미 등록된 생체인증 정보가 존재 합니다.
optionOff앱내 생체인증 사용 여부 Off 상태임
error공통 에러(NSError에 상세 코드 확인)

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.2.19

1 year ago

0.2.18

1 year ago

0.2.17

1 year ago

0.2.16

1 year ago

0.2.15

1 year ago

0.2.14

1 year ago

0.2.12

1 year ago

0.2.11

1 year ago

0.2.10

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago