Skip to content

HAMUR_E5107: sendAuthLink is used without @hamur/mail

sendAuthLink is used without @hamur/mail. Error HAMUR_E5107 belongs to @hamur/auth (5101 – 5200).

Message

text
HAMUR_E5107 @hamur/auth: sendAuthLink needs @hamur/mail in modules

Cause

A server file imports sendAuthLink from @hamur/auth/server, which sends through @hamur/mail, and @hamur/mail is not in modules.

Fix

Install @hamur/mail, add it to modules and set mail, or mail a createAuthToken link with your own mailer.