onfido-sdk-ui
onfido-sdk-ui copied to clipboard
SDK always requires both sides for Driver's licence
What was the expected behaviour?
According to https://onfido.com/supported-documents/ some countries only require one side of the driver's licence. Expected behavior is that SDK UI only requires one side of the document for these countries.
What happened instead?
SDK always requires two sides for driver's licence
Version info:
- Onfido SDK: 6.0.0
- OS: Windows 10
- Browser: Version 86.0.4240.111 (Official Build) (64-bit)
- Device: PC
- Node: v12.18.3
- Framework or relevant dependencies (if applicable)
Steps to reproduce:
- init Onfido SDK UI
- Choose "Driver's licence" from document selection
- Choose Denmark (or any other country which requires only one side for driving licence)
- Both sides are required
Hi @timukasr
We currently always require both sides of a driver's licence on the Web SDK's document capture flow for this document type regardless of the country selected.