Situation:
- I'm using React in a Meteor app.
- My packages for authentication:
accounts-password;useraccounts:core - I also use the
gadicc:blaze-react-componentto render the{{> atForm }}template in my react component =><Blaze template="atForm" />
Problem:
I don't know what should be the proper syntax to secure a specific page as described in the useraccounts guide but with react.
Lets suppose that I want to secure <Mypage /> imported from './mypage.jsx'
How can I call {{> ensureSignedIn template="myTemplate"}} and reaplace "myTemplate" by <Mypage /> ?
I tried <Blaze template="atForm" template={Mypage} /> without success...
Is it even possible to make something like this ?
I found a solution:
With
kadira:flow-routerMeteor's package, usingreact-layoutanduseraccounts:flow-routing, I can do something like that:It seems that it all happens into
triggersEnter: [...]key.More details here.