Skip to main content

Change Security PIN

This method allows you to change user security PIN.

Example

import Facenote from '@facenote/webapp-sdk'

const CLIENT_ID = <YOUR_CLIENT_ID>
const CLIENT_SECRET = <YOUR_CLIENT_SECRET>
const DEVICE_ID = <YOUR_DEVICE_ID>

const facenote = new Facenote()
await facenote.initialize(CLIENT_ID, CLIENT_SECRET, DEVICE_ID)

const userId = <ID_USED_TO_ENROLL_USER>
const newPin = <FOUR_DIGIT_NUMBER>

facenote.changeUserPin(userId, newPin)