webauthn-demo icon indicating copy to clipboard operation
webauthn-demo copied to clipboard

npm install fails

Open ryszard314159 opened this issue 1 year ago • 4 comments

npm install generates a lot of errors npm-install.log

ryszard314159 avatar Dec 03 '24 19:12 ryszard314159

I updated the dependencies and the errors are now gone. However, express-session doesn't work anymore because of the restrictions Chrome imposed on cookies. The backend server runs on http while the frontend runs on https and the session cookie is blocked in Chrome because it's seen as a cookie from a cross-site request.

I need to look into this.

DannyMoerkerke avatar Dec 03 '24 22:12 DannyMoerkerke

Errors are gone! However, with https://localhost:8080 I am getting "Your connection is not private..." and I can access the page only through http (not https)

ryszard314159 avatar Dec 03 '24 22:12 ryszard314159

I implemented https for both frontend and it should be running now but for some reason, I still can't get rid of the "Your connection is not private" error on macOS while a similar certificate doesn't give that error on my machine. If you ignore the error message and continue to the site then it works, but I'll look into how to fix that as well.

Please refer to the readme for instructions on how to generate and trust the certificate.

DannyMoerkerke avatar Dec 16 '24 09:12 DannyMoerkerke

After that you will need to make your device trust the certificate...

How do I do it on Linux? In the README.md you have instructions for Mac and Windows, but none for Linux.

ryszard314159 avatar Dec 16 '24 16:12 ryszard314159