Its been a while
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user