app/models/session_manager.rb
# Retrieves the identity from using the identity id and creation time stored in the session
Retrieves the identity from using the identity id and creation time stored in the session
Retrieves the identity from using the identity id and creation time stored in the session
def identity
    serialized_identity = @session[:identity]
    if serialized_identity &&  serialized_identity['expires_at'] > Time.now
      begin
        @identity ||= User::Identity.deserialize!(serialized_identity['id_token'])
      rescue
        nil
      end
    else
      nil
    end
  end
def identity serialized_identity = @session [ :identity ] if serialized_identity && serialized_identity [ 'expires_at' ] > Time . now begin @identity ||= User :: Identity . deserialize! ( serialized_identity [ 'id_token' ] ) rescue nil end else nil end end
Retrieves the identity from using the identity id and creation time stored in the session
Retrieves the identity from using the identity id and creation time stored in the session