publickeycredential.js 779 B

12345678910111213141516171819202122232425262728293031
  1. /*!
  2. {
  3. "name": "PublicKeyCredential",
  4. "notes": [
  5. {
  6. "name": "MDN Documentation",
  7. "href": "https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential"
  8. },
  9. {
  10. "name": "Google Developers solution",
  11. "href": "https://developers.google.com/web/updates/2018/03/webauthn-credential-management#the_solution"
  12. }
  13. ],
  14. "property": "publicKeyCredential",
  15. "tags": ["webauthn", "web authentication"],
  16. "authors": ["Eric Delia"]
  17. }
  18. !*/
  19. /* DOC
  20. Detects support for PublicKeyCredential as part of the Web Authentication API (also known as webauthn)
  21. */
  22. define(['Modernizr'], function(Modernizr) {
  23. Modernizr.addTest('publicKeyCredential', function() {
  24. if (window.PublicKeyCredential) {
  25. return true;
  26. }
  27. return false;
  28. });
  29. });