diff --git a/package.json b/package.json index 1bd3120..40ea906 100644 --- a/package.json +++ b/package.json @@ -36,5 +36,8 @@ "typescript-eslint": "^8.54.0", "vite": "^7.3.1", "wrangler": "^4.63.0" + }, + "dependencies": { + "jsqr": "^1.4.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a4afa98..d717971 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,6 +7,10 @@ settings: importers: .: + dependencies: + jsqr: + specifier: ^1.4.0 + version: 1.4.0 devDependencies: '@eslint/compat': specifier: ^2.0.2 @@ -1150,6 +1154,9 @@ packages: json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + jsqr@1.4.0: + resolution: {integrity: sha512-dxLob7q65Xg2DvstYkRpkYtmKm2sPJ9oFhrhmudT1dZvNFFTlroai3AWSpLey/w5vMcLBXRgOJsbXpdN9HzU/A==} + keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} @@ -2578,6 +2585,8 @@ snapshots: json-stable-stringify-without-jsonify@1.0.1: {} + jsqr@1.4.0: {} + keyv@4.5.4: dependencies: json-buffer: 3.0.1 diff --git a/src/lib/components/QRCodeScanner.svelte b/src/lib/components/QRCodeScanner.svelte new file mode 100644 index 0000000..bb62b97 --- /dev/null +++ b/src/lib/components/QRCodeScanner.svelte @@ -0,0 +1,107 @@ + + +
+ your account has successfully been verified. go back to the site tab to continue +
+{:else if qrCodeError} ++ {qrCodeError} +
+{/if} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 075d0fd..7e838ce 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,9 +1,7 @@
+ we recently had to remove the fully automatic k-id verification for discord because of fixes
+ by k-id.
+
+
+ please re-read the discord section, as you will now have to scan a qr code it gives you. (the
+ qr code scanner is below the code snippet)
+
it doesn't matter if you are in the UK or similar region that currently has access to this, this will verify your account for the future global rollout in @@ -72,83 +81,32 @@ const api = findObjectFromKey( "patch", ); -// send a api request to discord /age-verification/verify and then redirect the page to our website +// send a api request to discord /age-verification/verify and then redirect the page to k-id's website const request = await api.post({ url: "/age-verification/verify", body: { method: 3 }, }); const verificationUrl = request.body.verification_webview_url; -window.location.href = `https://age-verifier.kibty.town/webview?url=${encodeURIComponent(verificationUrl)}`; +window.location.href = verificationUrl;
(feel free to read the code, we made it readable and we have nothing to hide)
- it should navigate to a link (or give you a link to navigate to), from there, you can just wait until the page says success + it should navigate to a k-id, verification page, from there hit the face scan option and + upload/scan/type the qr code it gives you below and press verify
-congrats! your discord account is now age verified.
+navigate to the age verification page and choose selfie, from there, get the url of the qr - code and put it in this input box, and press verify + code and put it in this input box, and press verify
- -- your account has successfully been verified. go back to the site tab to continue -
- {:else if qrCodeError} -- {qrCodeError} -
- {/if} +the age verifier is currently patched, we are working on a fix and will update this page when