menu

accounts-js

Fullstack authentication and accounts-management for Javascript

Channels
Team

Usage of Lodash defer in password package

September 30, 2020 at 5:55pm

Usage of Lodash defer in password package

September 30, 2020 at 5:55pm
Hello there, We're currently working on migrating off of Meteor accounts to accounts-js and during our implementation we had to extend the createUser method and this brought up the necessity of the usage of defer. I cloned the accounts-js, removed the defer line and ran the tests and everything worked smoothly. Although, there's no tests for this part specifically per se. So, this brings me to the bigger question: What's the use of defer in this context? And, is it ok to remove it?

October 2, 2020 at 2:30pm
Defer is used it here to not block the execution while sending the email.
  • reply
  • like
If you are fine with that removing defer make sense
  • reply
  • like
I see, thanks a lot!
  • reply
  • like