Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Added

- Dispatch webauthn:unsupported for browsers missing parseOptionsFromJSON [#127](https://github.com/cedarcode/devise-webauthn/pull/127) [@santiagorodriguez96]

### Changed

- Options for getting or creating passkeys and security keys are now served by dedicated Rails controllers and retrieved via JavaScript fetch requests. [#73](https://github.com/cedarcode/devise-webauthn/pull/73) [@nicolastemciuc]
Expand Down
4 changes: 3 additions & 1 deletion app/assets/javascript/devise/webauthn.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ function isWebAuthnSupported() {
navigator.credentials &&
navigator.credentials.create &&
navigator.credentials.get &&
window.PublicKeyCredential
window.PublicKeyCredential &&
PublicKeyCredential.parseCreationOptionsFromJSON &&
PublicKeyCredential.parseRequestOptionsFromJSON
);
}

Expand Down