Skip to content

Commit 97ab06a

Browse files
committed
update auth-flow to new transition objects
1 parent 59f2350 commit 97ab06a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/auth-flow/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ var Logout = React.createClass({
114114
}
115115
});
116116

117-
function requireAuth(nextState, router) {
117+
function requireAuth(nextState, transition) {
118118
if (!auth.loggedIn())
119-
router.replaceWith('/login', { nextPathname: nextState.location.pathname });
119+
transition.to('/login', { nextPathname: nextState.location.pathname });
120120
}
121121

122122
React.render((

0 commit comments

Comments
 (0)