Production Build Working
This commit is contained in:
@@ -19,10 +19,10 @@ Devise.setup do |config|
|
||||
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$}]
|
||||
['POST', %r{^/signin$}]
|
||||
]
|
||||
jwt.revocation_requests = [
|
||||
['DELETE', %r{^/logout$}]
|
||||
['DELETE', %r{^/signout$}]
|
||||
]
|
||||
jwt.expiration_time = 30.minutes.to_i
|
||||
end
|
||||
|
||||
@@ -23,7 +23,7 @@ class Rack::Attack
|
||||
end
|
||||
|
||||
# why not tell them politely if they try too much
|
||||
self.throttled_response = lambda do |_env|
|
||||
self.throttled_responder = lambda do |_env|
|
||||
[
|
||||
429,
|
||||
{ "Content-Type" => "application/json" },
|
||||
|
||||
Reference in New Issue
Block a user