lib/balrog/guard.rb
# A method to check that the authentication has not expired.
A method to check that the authentication has not expired.
A method to check that the authentication has not expired .
def still_valid?
    return true unless @balrog_session[:expiry_date]
    DateTime.current < @balrog_session[:expiry_date]
  end
def still_valid? return true unless @balrog_session [ :expiry_date ] DateTime . current < @balrog_session [ :expiry_date ] end
A method to check that the authentication has not expired.
A method to check that the authentication has not expired .
# If the user did not set configured the Balrog session  # to expire, the cookie is valid.