Utoljára aktív 1724335051

jaandrle's Avatar jaandrle gist felülvizsgálása 1724335051. Revízióhoz ugrás

1 file changed, 2 insertions

README.md

@@ -1,2 +1,4 @@
1 + ## How To Setup Fingerprint Auth In JavaScript
2 +
1 3 - [WebDevSimplified/webauthn-basic-authentication](https://github.com/WebDevSimplified/webauthn-basic-authentication)
2 4 - [How To Setup Fingerprint Auth In JavaScript - YouTube](https://www.youtube.com/watch?v=viZs1iVsLpA)

jaandrle's Avatar jaandrle gist felülvizsgálása 1724335010. Revízióhoz ugrás

1 file changed, 2 insertions

README.md(fájl létrehozva)

@@ -0,0 +1,2 @@
1 + - [WebDevSimplified/webauthn-basic-authentication](https://github.com/WebDevSimplified/webauthn-basic-authentication)
2 + - [How To Setup Fingerprint Auth In JavaScript - YouTube](https://www.youtube.com/watch?v=viZs1iVsLpA)

jaandrle's Avatar jaandrle gist felülvizsgálása 1724334839. Revízióhoz ugrás

1 file changed, 25 insertions

navigator.credentials.js(fájl létrehozva)

@@ -0,0 +1,25 @@
1 + const temp0= await navigator.credentials.create({
2 + publicKey: {
3 + challenge: new Uint8Array([0, 1, 2, 3, 4, 5, 6]),
4 + rp: { name: "Web Dev Simplified" },
5 + user: {
6 + id: new Uint8Array(16),
7 + name: "andrle.jan@centrum.cz",
8 + displayName: ""
9 + },
10 + pubKeyCredParams: [
11 + { type: "public-key", alg: -7 },
12 + { type: "public-key", alg: -8 },
13 + { type: "public-key", alg: -257 },
14 + ]
15 + },
16 + });
17 + await navigator.credentials.get({
18 + publicKey: {
19 + challenge: new Uint8Array([0, 1, 2, 3, 4, 5, 6]),
20 + rpId: location.host,
21 + allowCredentials: [
22 + { type: "public-key", id: temp0.rawId },
23 + ],
24 + },
25 + });
Újabb Régebbi