build: setup docker containers for development

This commit is contained in:
2026-03-12 18:37:56 +01:00
parent c16657f996
commit 83cad4b0ae
33 changed files with 170 additions and 138 deletions

View File

@@ -0,0 +1,25 @@
fetch('/users/generate-auth-options/arthur')
.then(resp => resp.json())
.then((optionsJSON) => {
console.log(optionsJSON);
return SimpleWebAuthnBrowser.startAuthentication({ optionsJSON })
})
.then(authResp => {
console.log("verify");
return fetch("/users/verify-auth", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
authResp: authResp,
username: "arthur"
})
});
})
.then(res => {
console.log(res);
})
.catch(err => {
console.error(err);
});