Sha256: 69efad7dad788b7cd11cc4626d882458c2383599064177b28444fe8cf1448f5a
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true module Omniauth module Rails class AuthenticationRequest def initialize(request) @request = request end def persist(authentication_session) authentication_session.email = email authentication_session.expire_in(session_duration) end private attr_reader :request def email info.email end def info request.env["omniauth.auth"].info end def session_duration Configuration.session_duration end end end end
Version data entries
4 entries across 4 versions & 1 rubygems