Last active
August 5, 2019 23:24
-
-
Save HeshamMagdy97/c3a64aa7bdc1056ead1e9bb02cceb445 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.jwt do |jwt| | |
jwt.secret = ENV['DEVISE_JWT_SECRET_KEY'] | |
jwt.dispatch_requests = [ | |
['POST', %r{^/login$}] | |
] | |
jwt.revocation_requests = [ | |
['DELETE', %r{^/logout$}] | |
] | |
jwt.expiration_time = 1.day.to_i | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment