Error1 reports
Fix NotSupportedError
in Electron
✅ Solution
The "NotSupportedError: The user agent does not support public key credentials" in Electron usually occurs because secure context requirements (HTTPS) aren't met, or a necessary feature is disabled. Ensure your Electron app is served over HTTPS, even in development (using a self-signed certificate if needed), and verify that the 'EnableWebAuthnAPI' runtime feature is enabled in your Electron app's Chromium flags via `app.commandLine.appendSwitch('enable-features', 'EnableWebAuthnAPI')`. Restart your Electron application after applying these changes.
Related Issues
Real GitHub issues where developers encountered this error:
Timeline
First reported:Sep 27, 2025
Last reported:Sep 27, 2025