mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 13:03:43 +01:00
461239db5d
* Update webpush to fork with OpenSSL 3 compatibility * Fix tests with OpenSSL 3.0 * Update webauthn gem to latest release and update dependencies
7 lines
252 B
Ruby
7 lines
252 B
Ruby
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
|