Skip to content

Instantly share code, notes, and snippets.

@mazikwyry
Last active June 13, 2017 10:43
Show Gist options
  • Save mazikwyry/df5071c12cba46ff0a621a45b78770bf to your computer and use it in GitHub Desktop.
Save mazikwyry/df5071c12cba46ff0a621a45b78770bf to your computer and use it in GitHub Desktop.
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