lib/todoable_api/sessionable.rb
def connected?
      return false if auth_token.nil? || auth_token.empty?

      expires_at = auth_token.dig(:expires_at)

      return false if expires_at.nil?

      expires_at >= DateTime.now
    end
# If already connected, return true. The token will expire after 20 minutes
If already connected, return true. The token will expire after 20 minutes
If already connected return true . The token will expire after 20 minutes
def connected?
      return false if auth_token.nil? || auth_token.empty?
      expires_at = auth_token.dig(:expires_at)
      return false if expires_at.nil?
      expires_at >= DateTime.now
    end
def connected? return false if auth_token . nil? || auth_token . empty? expires_at = auth_token . dig ( :expires_at ) return false if expires_at . nil? expires_at >= DateTime . now end
If already connected, return true.
If already connected return true .