Initial commit

This commit is contained in:
Yaser
2026-08-13 19:56:46 +03:30
commit de1d57a67b
474 changed files with 43185 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# frozen_string_literal: true
FactoryBot.define do
factory :api_key, class: 'APIKey' do
kid { Faker::Crypto.sha256 }
secret { SecureRandom.hex(16) }
scope { %w[trade] }
algorithm { 'HS256' }
trait :with_service_account do
key_holder_account { create(:service_account) }
end
trait :with_user do
key_holder_account { create(:user) }
end
end
end