Skip to content

Instantly share code, notes, and snippets.

@HeshamMagdy97
Last active August 5, 2019 23:24
Show Gist options
  • Save HeshamMagdy97/c3a64aa7bdc1056ead1e9bb02cceb445 to your computer and use it in GitHub Desktop.
Save HeshamMagdy97/c3a64aa7bdc1056ead1e9bb02cceb445 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