diff --git a/examples/basic/src/index.js b/examples/basic/src/index.js
index <HASH>..<HASH> 100644
--- a/examples/basic/src/index.js
+++ b/examples/basic/src/index.js
@@ -61,8 +61,15 @@ const router = install({
     {
       path: 'admin',
       data: { component: AdminRoute },
-      canActivate: (node) => {
-        return true
+      canActivate: (node, navigation, context) => {
+        if (context.stores.SessionStore.isAuthenticated) {
+          return true
+        }
+        if (navigation.sequence > 0) {
+          return navigation.goBack()
+        } else {
+          return navigation.redirectTo('/')
+        }
       }
     }
   ]
Updates example to take in context object in canActivate guard of admin route.