File: webauthn.rb

package info (click to toggle)
ruby-webauthn 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 384 kB
  • sloc: ruby: 2,138; sh: 4; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require "webauthn/configuration"
require "webauthn/credential"
require "webauthn/credential_creation_options"
require "webauthn/credential_request_options"
require "webauthn/version"

module WebAuthn
  TYPE_PUBLIC_KEY = "public-key"

  def self.generate_user_id
    configuration.encoder.encode(SecureRandom.random_bytes(64))
  end
end