     }
 
     func authenticateUser() {
+
+        if !isAuthenticationRequired() {
+            self.presenter.authneticationSuccssful()
+            return
+        }
+
         let context = LAContext()
         var error: NSError?
         let reasonString = "Authentication is needed to access orders"

            self.presenter.showAlert()
        }
    }
}


let defaultUserName = "jdotkawli@gmail.com"
let defaultPassword = "password"

let lastSeenOrdersTimestampKey = "lastSeenOrdersTimestampKey"
let touchIDAuthenticationtimeout = 15

protocol AlertDisplayable {
    func showAlert()
