Meteor: Detect if token has expired before submission?

Viewed 736

I am building a reset password screen in Meteor and I would like to detect if the reset password token has expired BEFORE I ask the user to fill out the form (password + confirm password) and click the submit button. It just seems like better UX.

However, I can't seem to find any methods or helpers in the Meteor docs that allow you to pass in a token and check to see if it's still valid or not. The only thing I can find is an error message that the token is expired AFTER the user submits. Which could be annoying to the customer, to have taken the time to fill out the form when we knew from the start that it wouldn't work. They would then have to go and get a new link, and re-fill out the form.

Is there not a better way to do this in Meteor?

1 Answers
Related