Meteor.user() is not defined in meteor 1.3 and react app

This my route code, I want to redirect the user to login page if he is not logged in

Meteor.startup(() => {

	function requireAuth(nextState, replace) {
    if (!Meteor1) {
            pathname: '/login',
            state: { nextPathname: nextState.location.pathname }

function requireNotAuthed(nextState, replace) {
    if (Meteor1) {
            pathname: '/',

 	<Router history = {browserHistory}>
 	      <Route path="/" component={ Navigation } onChange={requireAuth}>
	 	      <IndexRoute component={ App } onEnter={requireAuth} />
		      <Route path="/one" component={ One } onEnter={requireAuth} />
		      <Route path="/two" component={ Two } onEnter={requireAuth} />
		      <Route path="/login" component={Login} onEnter={requireNotAuthed}/>
		      <Route path="*" component={ Not } onEnter={requireAuth} />


export default createContainer(() => {

  return {
    Meteor1: Meteor.user()
}, Meteor.startup);

But in the console, it throws me this error

Uncaught ReferenceError: Meteor1 is not defined

I’m missing something on my code ?? Should I add account-base package also??

Why are you using Meteor1 and not just Meteor?

Sorry I didn’t read the rest of the example code, let me read this.

Sorry, I am not sure what your code is trying to do.
However I do know you need to add accounts-password or another flavour of accounts if you want user management.

@cstrat Meteor1 here is just a name and Meteor1: Meteor.user()