Sha256: aed7371e32090ec8f2b69057a368dc7afc431f3e4ab7418f0adfb452959ed490

Contents?: true

Size: 319 Bytes

Versions: 8

Compression:

Stored size: 319 Bytes

Contents

Warden::Manager.after_authentication do |user, auth, options|
  if user.respond_to?(:with_twilio_verify_authentication?)
    if auth.session(options[:scope])[:with_twilio_verify_authentication] = user.with_twilio_verify_authentication?(auth.request)
      auth.session(options[:scope])[:id] = user.id
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
devise-twilio-verify-0.2.5 lib/devise-twilio-verify/hooks/twilio_verify_authenticatable.rb
devise-twilio-verify-0.2.4 lib/devise-twilio-verify/hooks/twilio_verify_authenticatable.rb
devise-twilio-verify-0.2.3 lib/devise-twilio-verify/hooks/twilio_verify_authenticatable.rb
devise-twilio-verify-0.2.2 lib/devise-twilio-verify/hooks/twilio_verify_authenticatable.rb
devise-twilio-verify-0.2.1 lib/devise-twilio-verify/hooks/twilio_verify_authenticatable.rb
devise-twilio-verify-0.2.0 lib/devise-twilio-verify/hooks/twilio_verify_authenticatable.rb
devise-twilio-verify-0.1.1 lib/devise-twilio-verify/hooks/twilio_verify_authenticatable.rb
devise-twilio-verify-0.1.0 lib/devise-twilio-verify/hooks/twilio_verify_authenticatable.rb