UNPKG

@ha_tecno/react-native-sdk

Version:

React Native SDK for biometric authentication, liveness detection, and fingerprint recognition

13 lines (11 loc) 284 B
import { assertTokenIsValid, setToken, validateTokenRemote, } from './tokenManager'; export const configureLibrary = async (token: string) => { if (!token) throw new Error('Token é obrigatório'); setToken(token); assertTokenIsValid(); await validateTokenRemote(); };