Skip to content

Instantly share code, notes, and snippets.

@sobstel sobstel/warden.rb
Last active Feb 20, 2018

What would you like to do?
Warden Rails cookie
Warden::Manager.after_authentication do |user, auth, _opts|
cookies =
cookies.encrypted[REMEMBER_ME_COOKIE_NAME] = { value:, expires: 1.week.from_now }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.