Closed ydanneg closed 6 months ago
For me, this works:
import { getSigningCertificate, sign } from '@web-eid/web-eid-library/web-eid'
Thanks for the tip, @vatsake! We intend to make the following work and update docs accordingly (this is an example for the future that does not currently work, for now, please use the API according to the example in @vatsake comment):
import { getSigningCertificate, sign } from '@web-eid/web-eid-library'
However, as this is a minor developer experience issue, it is not top priority, so it will take some time until we get there. Feel free to upvote this.
I have TS React project where I would like to use web-eid.js.
Dependency:
Import:
I get an error:
I created a simple project to reproduce it: https://github.com/ydanneg/web-eid-sample
How can I use web-eid in my project?
PS. I'm not a web developer.
PPS. Documentation seems to be outdated