mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 05:12:18 +00:00
10 lines
283 B
Ruby
10 lines
283 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:webauthn_credential) do
|
|
user_id { Fabricate(:user).id }
|
|
external_id { Base64.urlsafe_encode64(SecureRandom.random_bytes(16)) }
|
|
public_key { OpenSSL::PKey::EC.generate('prime256v1').public_key }
|
|
nickname 'USB key'
|
|
sign_count 0
|
|
end
|