title: How to register devise login event?
body: <p>I am using Devise and Omniauth to offer login via native(devise), facebook and google+</p>
  
  <p>Users can theoretically login with any method in succession and I would like to register the last method of authentication. For Facebook and G+ I am able to record it in the find_* method on my user table but Devise 'native' auth is a closed book.</p>
  
  <p>The best approach i can think of is to update a session variable in a controller just prior to login and then use a warden authentication callback or subclass the sessions controller </p>
  
  <p>as here: <a href="https://stackoverflow.com/questions/21268559/ruby-on-rails-devise-code-after-login">Ruby on Rails Devise code after login</a></p>
  
  <p>to update the user with the auth type straight after but it seems a little messy.</p>