How to use `Accounts.onEmailVerificationLink`

I tried to user Account.onEmtailVerificationLink on client side

if (Meteor.isClient) {
  Accounts.onEmailVerificationLink(function (token, done) {
    console.log('inside onEmailVerificationLink');
    console.log('token');
    console.log(token);

    Accounts.verifyEmail(token, function (err) {
      if (err != null) {
        console.log(err.message);
      } else {
        console.log('Thank you! Your email address has been confirmed.')
      }
    });

  });
}

don’t work, please help me.

Did you read https://docs.meteor.com/api/passwords.html

Also check out this post Email verification