Sha256: a4ce081c180919a389bff479129e0c2fda145d86f87985f209a154ce91ef13c0
Contents?: true
Size: 985 Bytes
Versions: 4
Compression:
Stored size: 985 Bytes
Contents
# frozen_string_literal: true require "webauthn/public_key_credential/creation_options" require "webauthn/public_key_credential/request_options" require "webauthn/public_key_credential_with_assertion" require "webauthn/public_key_credential_with_attestation" module WebAuthn module Credential def self.options_for_create(**keyword_arguments) WebAuthn::PublicKeyCredential::CreationOptions.new(**keyword_arguments) end def self.options_for_get(**keyword_arguments) WebAuthn::PublicKeyCredential::RequestOptions.new(**keyword_arguments) end def self.from_create(credential, relying_party: WebAuthn.configuration.relying_party) WebAuthn::PublicKeyCredentialWithAttestation.from_client(credential, relying_party: relying_party) end def self.from_get(credential, relying_party: WebAuthn.configuration.relying_party) WebAuthn::PublicKeyCredentialWithAssertion.from_client(credential, relying_party: relying_party) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
webauthn-3.2.2 | lib/webauthn/credential.rb |
webauthn-3.2.1 | lib/webauthn/credential.rb |
webauthn-3.2.0 | lib/webauthn/credential.rb |
webauthn-3.1.0 | lib/webauthn/credential.rb |