-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add expectedType
for verifyAuthenticationResponse and verifyRegistrationResponse
#436
Conversation
Hey, regarding the issues you're having getting tests working, I discovered a bootstrapping issue with the monorepo related to how workspaces are set up. I needed to explicitly perform a special sequence of commands to get root dependencies installed which make it possible to actually build the various packages after a fresh clone that will ultimately get pnpm to understand the dnt-built workspace folders are in place for symlinking. tl;dr: I just pushed up a new pnpm command to the master branch that you can run to hopefully get tests working locally: pnpm run bootstrap-monorepo Give it a try and let me know what you think |
Upgrading deno and running that command worked :) Tests are now running locally, but I do get a couple of failures, and it seems I'm running into some changes from https://github.com/MasterKale/SimpleWebAuthn/blob/master/packages/server/deno.lock that my local deno must be looking to change. |
Added my tests:
Locally I get these couple errors:
|
1c4d3b1
to
bf6c633
Compare
@fabiancook I regenerated server's Deno lock file which should resolve those issues you're seeing when running tests. Try rebasing off of the latest master branch and see if it fixes the problem on your end too. |
I can see the tests run successfully for me as part of
See: But then for
Can see deno v1.37.0 popped up 2 days ago running it with the updated version of:
|
expectedType
for verifyAuthenticationResponse and verifyRegistrationResponse
Hey @fabiancook, I pulled down your branch and rebased on the latest master, and the tests passed just fine:
CI is happy too so I think this is good to go. |
This is now available in the newly published @simplewebauthn/[email protected] ✌️ |
This enables the functionality for authentication types like
payment.get
This would be used in this code right here: https://github.com/opennetwork/logistics/blob/7a305ea1a51d2276e2b77ebbc8be42e80c361893/src/listen/auth/webauthn.ts#L593C9-L604C12
Related to #402
This isn't complete support for secure payment confirmation, but its the only runtime level change needed. Some types need to be widened to allow additional extensions.