Click the button below. The widget will open a camera modal that scans your Firmas QR; if you don't have a camera, paste a firmas.io/verify/<id> URL.
The verdict is also dispatched as a firmas-verify:verdict DOM event — see the box at the bottom.
For residency, append a country code with a colon: trait="residency:ES" requires the user to be a resident of Spain. Without the suffix, any country counts.
<script src="https://www.firmas.io/widget/v1.js"></script>
<firmas-verify trait="over_18"></firmas-verify>
document.querySelector('firmas-verify').addEventListener(
'firmas-verify:verdict',
(e) => {
if (e.detail.ok) unlockGatedContent();
else showRetryUI(e.detail.error);
},
);