Meteor FlowRouter getParam error
<p>I have a route to reset password that setup like this:</p>

<pre><code>FlowRouter.route('/reset-password/:token',{
    name:'reset-password',
    action(){
        BlazeLayout.render('MainFullLayout',{main:'ResetPassword'});
    }
});
</code></pre>

<p>So that when I want to access it i can just:</p>

<pre><code>var tokenVar = FlowRouter.getParam("token");
</code></pre>

<p>But when I use it in <code>Accounts.resetPassword()</code> :</p>

<pre><code>Template.ResetPassword.events({
    'submit #resetpassword-form': function(event){
        event.preventDefault();
        var newPasswordVar = event.target.resetNewPassword.value;
        var tokenVar = FlowRouter.getParam("token");
        Accounts.resetPassword({
            token: tokenVar,
            password: newPasswordVar
        });
    }
  });
</code></pre>

<p>I got an error:</p>

<blockquote>
  <p>Uncaught Error: Match error: Expected string, got object</p>
</blockquote>

<p>How can I resolve this?</p>