I am a bit confused on how to use Accounts.onEmailVerificationLink. The documents are somewhat ambiguous:
Accounts.onEmailVerificationLink (callback)
Register a function to call when an email click is verified in an email sent to Accounts.sendVerificationEmail. This function should be called in the top-level code, and not inside Meteor.startup ().
What exactly does this function mean, a callback, or Accounts.onEmailVerificationLink itself?
In any case, no matter where I put things, I always get this error message on the browser console:
Accounts.onEmailVerificationLink was called more than once. Only one callback added will be executed.
source
share