Sha256: 138a04ff86e05435a582926f9c31812a93e1b4148fd7aad9e1cdd43ed609ac05
Contents?: true
Size: 523 Bytes
Versions: 3
Compression:
Stored size: 523 Bytes
Contents
module Devise module Oauth # Provides a few helpers that are included in ActionController::Base # for convenience. module Helpers protected # Overwrite expire_session_data_after_sign_in! so it removes all # oauth tokens from session ensuring registrations done in a row # do not try to store the same token in the database. def expire_session_data_after_sign_in! super session.keys.grep(/_oauth_token$/).each { |k| session.delete(k) } end end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
aihs_devise-1.2.rc | lib/devise/oauth/helpers.rb |
gonow-devise-1.2.rc | lib/devise/oauth/helpers.rb |
devise-edge-1.2.rc | lib/devise/oauth/helpers.rb |