Client SDKs
Expo SDK
sprintcheck-expo brings the same BVN, NIN and facial flows to Expo projects, with TypeScript types included. Works with managed and bare workflows.
Android only for now — iOS support is on the way. Requires Expo SDK 49+, React Native 0.70+ and Android API level 24+.
Install & configure
npm install sprintcheck-expo
# or
yarn add sprintcheck-expoThe SDK uses native modules, so generate the native project, register the package, and run a development build:
expo prebuildimport com.sprintcheckrn.SprintCheckPackage
// inside getPackages()
packages.add(SprintCheckPackage())expo run:androidInitialize & verify
import SprintCheck from 'sprintcheck-expo';
const init = await SprintCheck.initialize({
apiKey: SPRINTCHECK_API_KEY,
encryptionKey: SPRINTCHECK_ENCRYPTION_KEY,
});
if (!init.success) throw new Error(init.error);
const result = await SprintCheck.startBvnVerification('user@email.com');
// also: startNinVerification(email), startFacialVerification(email)
if (result.success) {
console.log(result.data);
}Every method resolves to a VerificationResult — { success, message, data?, error? }. If the build complains that SprintCheck is not linked, re-run expo prebuild --clean.
The SDK needs your
api_key and encryption_key — both are under Developers in your dashboard. Every completed verification also lands on your webhook and in your dashboard's verification history.