Nice API Wrapper
pnpm i @yeouidopartners/nice-kyc-api
const api = await NiceKycApi.create({
clientId: process.env.NICE_CLIENT_ID!,
clientSecret: process.env.NICE_CLIENT_SECRET!,
});
const res = await api.checkRrnMatch({
rrn: "9901011234567",
name: "홍길동",
});
if (!res.match) {
throw new Error("Name and rrn do not match");
}