MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.62k stars 137 forks source link

npm run build fails #379

Closed darkedges closed 1 year ago

darkedges commented 1 year ago

Describe the issue

when running a npm run build it fails with the following

PS E:\temp\SimpleWebAuthn\example> npm run build
> example@1.0.0 build
> tsc
fido-conformance.ts:143:8 - error TS2339: Property 'currentChallenge' does not exist on type 'LoggedInFIDOUser'.
143   user.currentChallenge = opts.challenge;
           ~~~~~~~~~~~~~~~~
fido-conformance.ts:160:34 - error TS2339: Property 'currentChallenge' does not exist on type 'LoggedInFIDOUser'.
160   const expectedChallenge = user.currentChallenge;
                                     ~~~~~~~~~~~~~~~~
fido-conformance.ts:225:8 - error TS2339: Property 'currentChallenge' does not exist on type 'LoggedInFIDOUser'.
225   user.currentChallenge = opts.challenge;
           ~~~~~~~~~~~~~~~~
fido-conformance.ts:242:34 - error TS2339: Property 'currentChallenge' does not exist on type 'LoggedInFIDOUser'.
242   const expectedChallenge = user.currentChallenge;
                                     ~~~~~~~~~~~~~~~~
Found 4 errors in the same file, starting at: fido-conformance.ts:143

Reproduction Steps

  1. git clone https://github.com/MasterKale/SimpleWebAuthn.git
  2. cd SimpleWebAuthn
  3. npm install
  4. npm run build

Expected behavior

Should build without an error

Code Samples + WebAuthn Options and Responses

Already supplied

Dependencies

SimpleWebAuthn Libraries

+-- @simplewebauthn/server@7.2.0

Additional context

N/A

MasterKale commented 1 year ago

@darkedges Thank you for reporting this! The latest master branch's example server should now build thanks to #381.