Skip to main content

Opt Out

This method allows you to do a user opt out. All user information will be deleted including biometric data and NFTs.

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>

facenote.optOut(userId)