signalUnknownCredential method

  1. @override
Future<void> signalUnknownCredential(
  1. SignalUnknownCredentialRequestType request
)
override

Signals to the platform that a credential is no longer recognized by the relying party.

Call this after the server rejects an assertion because the credential was deleted server-side. Where supported this removes the stale credential from the passkey picker and autofill suggestions.

This is a best-effort hint. It is only acted upon on Android (with a Credential Manager provider that supports the Signal API), iOS 26.2 and later, macOS 26.2 and later, and browsers that expose PublicKeyCredential.signalUnknownCredential. On every other platform or OS version, including older iOS and macOS releases, the call is a no-op.

Implementation

@override
Future<void> signalUnknownCredential(
  SignalUnknownCredentialRequestType request,
) async {
  try {
    _isValidCredentialID(request.credentialId);

    await _platform.signalUnknownCredential(request);
  } on PlatformException catch (e, stackTrace) {
    _mapSignalException(e, stackTrace);
  }
}