mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 07:38:07 -05:00
References #4584 and waiting-for-dev/devise-jwt#23 * Bug Users that use devise-jwt, will not have the correct behavior of trackable feature. As a request for APIs always requires authentication since there is no session in APIs world, Devise counts +1 on every request since it contains authentication info. It happens because Devise has a trackable hook that updates the trackable info everytime that the user is signed in by Warden. * Fix We are moving update_trackable_fields! from trackable hook (which was removed) to sign_in_out and database_authenticatable. This way, update_trackable_fields! is going to run only when the user signed in by Devise (only one time).