Next.js
This guide walks you through integrating OneSDK with Next.js, providing you with a solid foundation for building secure and efficient KYC workflows.
Quick Start Video
Setup Instructions
Implementation Guide
Component Configuration
Welcome Form
Document Form
Biometrics
Event Handling
Best Practices
Error Handling
Always implement proper error handling for both SDK initialization and component events.
Loading States
Show appropriate loading states during initialization and between component transitions.
Event Cleanup
Properly clean up event listeners when components unmount to prevent memory leaks.
Security
Never expose credentials in client-side code. Use environment variables and server-side token generation.
Remember to handle cleanup in your components by implementing proper unmounting logic and removing event listeners when components are destroyed.