-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: id verification status handling, QR code validation, and error handling #8387
Conversation
Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:
|
@@ -37,34 +40,46 @@ const Scanner = (props: ScannerProps) => { | |||
const scanner = useRef<QRScanner>() | |||
const videoElement = useRef<HTMLVideoElement>(null) | |||
const [qrOn, setQrOn] = useState(true) | |||
const { onError, onScan } = props | |||
const { onError, onScan, validator } = props | |||
const onScanSuccess = useCallback( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tahmidrahman-dsi do you think we need similar validator functionality in the transformHttpFieldIntoRequest function for the ESignet http field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can. We can provide a validator function to the http field which will be executed in transformHttpFieldIntoRequest
that can validate the response data. However we might need a design for that error case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if they have validated themsleves with MOSIP and we are now retrieving their data.
Then we can assume the id is valid.
I guess, we might not need validation for e-signet, then
Your environment is deployed to https://featqr-data-error-handling.opencrvs.dev |
…pdates - wrap it inside an input field - minor style updates to its ui container elements
Thanks @tahmidrahman-dsi The flaky test always seems to be |
No description provided.