Аутентификация по УКЭП / Подписание документов

2 000 руб. за проект
22 ноября 2019, 12:08 • 0 откликов • 15 просмотров
Реализовать получение токена при авторизации REACT JS. Используя только html, php и js.


ПРИМЕР ПОЛУЧЕНИЯ ТОКЕНА:
import { CadesPluginer as anyName } from "@crpt/cades-pluginer"; //or import CadesPluginer from "@crpt/cades-pluginer";
//usually you will need 2 methods CadesPluginer.getFinalCertsArray().then(certs => {
console.log("certs", certs);
CadesPluginer.signMessage("lalala", certs[0].certificate).then(signed =>
console.log("signed", signed); );
});
Файлы