Skip to content

Commit

Permalink
fix: use @simplewebuathn/types for broken tyupes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed May 21, 2024
1 parent 8049d9c commit a7acee7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"devDependencies": {
"@simplewebauthn/browser": "9.0.1",
"@simplewebauthn/server": "9.0.3",
"@simplewebauthn/types": "^9.0.1",
"@types/node": "18.11.10",
"@types/nodemailer": "6.4.6",
"@types/react": "18.0.37",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/utils/webauthn-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
/**
* @template {WebAuthnOptionsAction} T
* @typedef {T extends WebAuthnAuthenticate ?
* { options: import("@simplewebauthn/server/script/deps.d.ts").PublicKeyCredentialRequestOptionsJSON; action: "authenticate" } :
* { options: import("@simplewebauthn/types").PublicKeyCredentialRequestOptionsJSON; action: "authenticate" } :
* T extends WebAuthnRegister ?
* { options: import("@simplewebauthn/server/script/deps.d.ts").PublicKeyCredentialCreationOptionsJSON; action: "register" } :
* { options: import("@simplewebauthn/types").PublicKeyCredentialCreationOptionsJSON; action: "register" } :
* never
* } WebAuthnOptionsReturn
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/utils/webauthn-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
type PublicKeyCredentialCreationOptionsJSON,
type PublicKeyCredentialRequestOptionsJSON,
type RegistrationResponseJSON,
} from "@simplewebauthn/server/esm/deps"
} from "@simplewebauthn/types"
import type {
Adapter,
AdapterAccount,
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7acee7

Please sign in to comment.