Sha256: 48bba658c3375982cac94ffd1e0d669bbd7ee6eba3b4e6e69d829cd31e3d542a
Contents?: true
Size: 550 Bytes
Versions: 65
Compression:
Stored size: 550 Bytes
Contents
import { Controller } from "@hotwired/stimulus"; import { get, parseRequestOptionsFromJSON, } from "@github/webauthn-json/browser-ponyfill"; export default class WebauthnAuthenticationController extends Controller { static targets = ["response"]; static values = { options: Object }; authenticate() { get(this.options).then((response) => { this.responseTarget.value = JSON.stringify(response); this.element.requestSubmit(); }); } get options() { return parseRequestOptionsFromJSON(this.optionsValue); } }
Version data entries
65 entries across 65 versions & 1 rubygems