Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RiskyMH committed Oct 17, 2024
1 parent e678d8e commit 0944c30
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
8 changes: 4 additions & 4 deletions app/utils/passkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function verifyCredentials(challenge: string, credential: Credentia
throw new Error("Invalid Credentials - Registration verification failed.");
}

const { credentialID, credentialPublicKey } = verification.registrationInfo ?? {};
const { id: credentialID, publicKey: credentialPublicKey } = verification.registrationInfo?.credential ?? {};

if (credentialID == null || credentialPublicKey == null) {
throw new Error("Registration failed");
Expand All @@ -47,10 +47,10 @@ export async function verifyCredentialss(
response: credential,
expectedChallenge: Buffer.from(challenge).toString("base64").replaceAll("=", ""),
requireUserVerification: true,
authenticator: {
credentialID: existing.id,
credentialPublicKey: Buffer.from(existing.publicKey, "base64"),
credential: {
id: existing.id,
counter: 0,
publicKey: Buffer.from(existing.publicKey, "base64")
},
...HOST_SETTINGS,
});
Expand Down
Binary file modified bun.lockb
Binary file not shown.
39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.3",
"@riskymh/aws": "^0.0.8",
"@simplewebauthn/server": "^10.0.1",
"@simplewebauthn/server": "^11.0.0",
"@t3-oss/env-nextjs": "^0.11.1",
"@tailwindcss/typography": "^0.5.15",
"@tiptap/extension-blockquote": "^2.8.0",
Expand Down Expand Up @@ -64,48 +64,48 @@
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"dompurify": "^3.1.7",
"drizzle-orm": "^0.33.0",
"jose": "^5.9.3",
"drizzle-orm": "^0.35.1",
"jose": "^5.9.4",
"jsdom": "^25.0.1",
"lucide-react": "^0.447.0",
"lucide-react": "^0.453.0",
"mailauth": "^4.7.2",
"marked": "^14.1.2",
"marked": "^14.1.3",
"mimetext": "^3.0.24",
"next": "^14.2.14",
"next": "14.2.14",
"postal-mime": "^2.3.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"server-only": "^0.0.1",
"shiki": "1.21.1",
"shiki": "1.22.0",
"sonner": "^1.5.0",
"swr": "^2.2.5",
"tailwind-merge": "^2.5.3",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
"turndown": "^7.2.0",
"ua-parser-js": "^1.0.39",
"use-debounce": "^10.0.3",
"use-debounce": "^10.0.4",
"usehooks-ts": "^3.1.0",
"vaul": "^1.0.0",
"vaul": "^1.1.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@cloudflare/workers-types": "^4.20241004.0",
"@types/bun": "^1.1.10",
"@cloudflare/workers-types": "^4.20241011.0",
"@types/bun": "^1.1.11",
"@types/dompurify": "^3.0.5",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.7.4",
"@types/node": "^22.7.6",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@types/react-dom": "^18.3.1",
"@types/turndown": "^5.0.5",
"@types/ua-parser-js": "^0.7.39",
"autoprefixer": "^10.4.20",
"drizzle-kit": "^0.24.2",
"drizzle-kit": "^0.26.2",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.14",
"eslint-config-next": "14.2.14",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2"
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3"
},
"trustedDependencies": [],
"overrides": {
Expand All @@ -116,6 +116,7 @@
"@peculiar/asn1-rsa": "^2.3.8",
"@peculiar/asn1-schema": "^2.3.8",
"@peculiar/asn1-x509": "^2.3.8",
"@peculiar/asn1-x509-logotype": "^2.3.8"
"@peculiar/asn1-x509-logotype": "^2.3.8",
"libsql": "0.4.5"
}
}

0 comments on commit 0944c30

Please sign in to comment.