 
 ;; Certain objects can provide protection for routes
 (defprotocol BidiRoutesProtector
-  (protect-routes [_ routes]))
+  (protect-bidi-routes [_ routes]))
 
 ;; Tag that a BidiRoutesContributor is protected
 ;; TODO Rename BidiRoutesContributor to BidiRoutesProvider

                         (or (:session-timeout-in-seconds opts)
                             10))}))

;; Now that we have a protection domain, we want the ability to create
;; routes components that can be protected.


  (context [this] context))

(defn new-mandatory-protected-bidi-routes
  "Create a set of protected routes. The absence of a :protection-domain
  dependency will cause an error. Routes can a bidi route structure, or
  a function that takes the component and returns a bidi route
  structure."
  [routes context]
  (component/using (->ProtectedBidiRoutes routes context) [:protection-domain]))

(defn new-protected-bidi-routes
  "Create a set of protected routes. The absence of a :protection-domain
  dependency will remove the protection. If protection is mandatory, use
