I'm a bit confused about how to use Accounts.onEmailVerificationLink
.
The docs are somewhat ambiguous:
Accounts.onEmailVerificationLink(callback)
Register a function to call when an email verification link is clicked in an email sent by Accounts.sendVerificationEmail. This function should be called in top-level code, not inside Meteor.startup().
What is meant exactly by "this function", the callback, or Accounts.onEmailVerificationLink
itself?
Anyway, 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.
Accounts.onEmailVerificationLink was called more than once. Only one callback added will be executed.
error even when theAccounts.onEmailVerificationLink()
function is empty. Have you figured it out yet? – Pigeontoed