Skip to content

Add sendSignal() helper - #778

Draft
MasterKale wants to merge 21 commits into
milestone/v14.0.0from
feat/browser-send-signal
Draft

Add sendSignal() helper#778
MasterKale wants to merge 21 commits into
milestone/v14.0.0from
feat/browser-send-signal

Conversation

@MasterKale

@MasterKale MasterKale commented Jul 9, 2026

Copy link
Copy Markdown
Owner

This PR adds a new sendSignal() method to @simplewebauthn/browser to simplify use of the WebAuthn Signal APIs:

import { sendSignal } from '@simplewebauthn/browser';

await sendSignal({
  signalName: 'unknownCredential',
  rpID: 'example.com',
  credentialID: 'aPH2yv3TIBVZbj2wJ30Kmw',
});

await sendSignal({
  signalName: 'allAcceptedCredentials',
  rpID: 'example.com',
  userID: 'Lrk2ki-arSSFcm6PPlMKEQ',
  allAcceptedCredentialIDs: [
    'd77Hxqvltn66l7hegq_E3Q',
    'nz_ajzNrMq3KfPrkOt3lHQ',
  ]
});

await sendSignal({
  signalName: 'currentUserDetails',
  rpID: 'example.com',
  userID: 'Lrk2ki-arSSFcm6PPlMKEQ',
  userName: 'newUsername@example.com',
  userDisplayName: 'NewUsername (Prod)',
});

Fixes #718

@MasterKale MasterKale added the package:browser @simplewebauthn/browser label Jul 9, 2026
@MasterKale
MasterKale changed the base branch from master to milestone/v14.0.0 July 9, 2026 05:57
@MasterKale MasterKale added the package:server @simplewebauthn/server label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package:browser @simplewebauthn/browser package:server @simplewebauthn/server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant