fido2.js contains side effects (binding listener to DOMContentLoaded), which makes importing and using this module quite tricky. We should separate the actual functions to the separate module and only provide thin wrapper that binds the listener in separate file. This allows easy usage as ready-to-use bundle as well as importing it as a library.
fido2.js
contains side effects (binding listener toDOMContentLoaded
), which makes importing and using this module quite tricky. We should separate the actual functions to the separate module and only provide thin wrapper that binds the listener in separate file. This allows easy usage as ready-to-use bundle as well as importing it as a library.