diff --git a/server/lib/login/passwordless/start.ts b/server/lib/login/passwordless/start.ts index 6d2a8ab..522ad64 100644 --- a/server/lib/login/passwordless/start.ts +++ b/server/lib/login/passwordless/start.ts @@ -14,9 +14,11 @@ export async function startPasswordlessLogin( const user: Accownt.User = await storage.getItem(`user-${userId}`); const token = await signJWT(user.id, user.email, TEMP_JWT_EXPIRES_IN); + const link = `${ACCOWNT_API_URL}/login/passwordless?jwt=${token}`; await sendMail({ subject: `${NAME} Passwordless Login`, - text: `${ACCOWNT_API_URL}/login/passwordless?jwt=${token}`, + html: `Login to ${NAME}.`, + text: link, to: user.email });