Skip to content
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

Added API testing for missing methods #964

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

victorbojica
Copy link

@victorbojica victorbojica commented Nov 27, 2024

Summary of change

Added basic tests for registerOptions, signInOptions, signIn, signUp.
These tests are for the happy flow. More will be added when the core will be implemented.

The core has been mocked and is using the simplewebauthn library for handling webauthn logic.

For emulating the navigator.credentials.create and navigator.credentials.get we used a virtual authenticator: https://www.descope.com/blog/post/virtual-webauthn . This has been ported using WebAssembly.

test/webauthn/apis.test.js Outdated Show resolved Hide resolved
test/webauthn/apis.test.js Outdated Show resolved Hide resolved
test/webauthn/wasm_exec.js Show resolved Hide resolved
test/webauthn/apis.test.js Show resolved Hide resolved
test/webauthn/apis.test.js Show resolved Hide resolved
Copy link

Deploying supertokens-node-pr-check-for-edge-function-compat with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec36c5b
Status: ✅  Deploy successful!
Preview URL: https://236ea8e8.supertokens-node-b95.pages.dev

View logs

@victorbojica victorbojica merged commit fbb2d4b into feat/webauthn/base Dec 3, 2024
14 of 18 checks passed
@victorbojica victorbojica deleted the feat/webauthn/api-testing branch December 3, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants