Skip to content

Conversation

@coolbueb
Copy link
Contributor

  • Updated the listCredentialsGET function to handle cases where the WebAuthn user is not the primary user and when multiple WebAuthn users are linked.

Summary of change

(A few sentences about this PR)

Related issues

  • Link to issue1 here
  • Link to issue1 here

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

  • Changelog has been updated
  • coreDriverInterfaceSupported.json file has been updated (if needed)
    • Along with the associated array in lib/ts/version.ts
  • frontendDriverInterfaceSupported.json file has been updated (if needed)
  • Changes to the version if needed
    • In package.json
    • In package-lock.json
    • In lib/ts/version.ts
  • Had run npm run build-pretty
  • Had installed and ran the pre-commit hook
  • If new thirdparty provider is added,
    • update switch statement in recipe/thirdparty/providers/configUtils.ts file, createProvider function.
    • add an icon on the user management dashboard.
  • Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.
  • If have added a new web framework, update the add-ts-no-check.js file to include that
  • If added a new recipe / api interface, then make sure that the implementation of it uses NON arrow functions only (like someFunc: function () {..}).
  • If added a new recipe, then make sure to expose it inside the recipe folder present in the root of this repo. We also need to expose its types.
  • If added a new entry point, then make sure that it is importable by adding it to the exports in package.json

Remaining TODOs for this PR

  • Item1
  • Item2

- Updated the `listCredentialsGET` function to handle cases where the WebAuthn user is not the primary user and when multiple WebAuthn users are linked.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 30, 2025

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

Latest commit: 90f2b84
Status: ✅  Deploy successful!
Preview URL: https://9b71e659.supertokens-node-b95.pages.dev

View logs

@promptless
Copy link

promptless bot commented Jul 30, 2025

✅ No documentation updates required.

@coolbueb coolbueb requested a review from porcellus July 30, 2025 15:07
# Conflicts:
#	CHANGELOG.md
#	lib/build/recipe/webauthn/api/implementation.js
#	lib/ts/recipe/webauthn/api/implementation.ts
@coolbueb coolbueb changed the title fix: WebAuthn credential listing not working for non-primary WebAuthn users and multiple linked WebAuthn users fix: WebAuthn credential listing/removal not working for non-primary WebAuthn users and multiple linked WebAuthn users Jul 30, 2025
@porcellus porcellus merged commit ab1f7fd into 23.0 Jul 30, 2025
23 of 38 checks passed
@porcellus porcellus deleted the fix/fix-credential-listing-multiple-users branch July 30, 2025 21:05
namsnath added a commit to supertokens/supertokens-python that referenced this pull request Aug 6, 2025
namsnath added a commit to supertokens/supertokens-python that referenced this pull request Aug 21, 2025
namsnath added a commit to supertokens/supertokens-python that referenced this pull request Aug 21, 2025
- Adds list/remove credential endpoints for webauthn
- Updates FDI to support 4.2
- Changes MFA and Session handling in webauthn
  - Prevents removal of WebAuthn credentials unless all session claims are satisfied
  - Changes how sessions are fetched when listing/removing/registering Webauthn credentials
  - Asserts MFA claims during credential registration/removal
- Fixes Webauthn credential listing and removal to work even when the Webauthn user is not the primary user and when there are multiple linked Webauthn users

ref: supertokens/supertokens-node#1023, supertokens/supertokens-node#1024
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.

4 participants