Its been a while
CI / scan_ruby (push) Failing after 2m13s
CI / lint (push) Failing after 20s

This commit is contained in:
Jason Jordan
2026-07-23 10:41:46 -04:00
parent 16fadfd529
commit 9853d58469
83 changed files with 1978 additions and 243 deletions
+3 -2
View File
@@ -7,10 +7,11 @@
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins "*"
origins 'http://localhost:3001'
resource "*",
headers: :any,
methods: [ :get, :post, :put, :patch, :delete, :options, :head ]
methods: [ :get, :post, :put, :patch, :delete, :options, :head ],
credentials: true
end
end
+11
View File
@@ -16,6 +16,17 @@ Devise.setup do |config|
# by default. You can change it below and use your own secret key.
# config.secret_key = '48e5fef13ecab7262e95624bd16f02e6a4ce11f2d44f1e18851e3e046535a6b6c233c94d1eb28e62655a12a63acb9ead3426ca1cb36753fa33f2970cd5377c3b'
config.jwt do |jwt|
jwt.secret = ENV['DEVISE_JWT_SECRET_KEY'] # Or Rails.application.credentials.devise_jwt_secret_key!
jwt.dispatch_requests = [
['POST', %r{^/login$}]
]
jwt.revocation_requests = [
['DELETE', %r{^/logout$}]
]
jwt.expiration_time = 30.minutes.to_i
end
# ==> Controller configuration
# Configure the parent class to the devise controllers.
# config.parent_controller = 'DeviseController'
@@ -4,5 +4,5 @@
# Use this to limit dissemination of sensitive information.
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
Rails.application.config.filter_parameters += [
:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
:secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
]