This is a JavaScript library to validate French identity using the governement new service France Identité.
The lib is currently using Selenium, but I am currently working on using the API.
npm install france-identite-js
/* eslint-disable no-console */
import verify from './lib/index.js';
const verificationsTodo = [
{
user: 'Stéphane Gully',
file: 'attestation.pdf',
},
{
user: 'Yves Volvic',
file: 'attestation.pdf',
},
{
user: 'John Doe',
file: 'test.pdf',
},
];
const run = async () => {
const results = await verify(verificationsTodo);
console.log(results);
};
run();