Admin can now hopefully add a passkey to their account

This commit is contained in:
Jonny Barnes 2023-09-25 18:31:38 +01:00
parent cadd58187a
commit 2fb8339d91
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
16 changed files with 351 additions and 40 deletions

View file

@ -1,10 +1,11 @@
import '../css/app.css';
// import { Auth } from './auth.js';
//
// let auth = new Auth();
import { Auth } from './auth.js';
// auth.createCredentials().then((credentials) => {
// // eslint-disable-next-line no-console
// console.log(credentials);
// });
let auth = new Auth();
document.querySelectorAll('.add-passkey').forEach((el) => {
el.addEventListener('click', () => {
auth.register();
});
});