Update & format

This commit is contained in:
2025-09-23 09:53:02 -05:00
parent 70924f84a9
commit 914c45dca4
13 changed files with 109 additions and 103 deletions

View File

@@ -19,10 +19,12 @@ export const UsesendOTPPasswordReset = Usesend({
const useSend = new UseSend(provider.apiKey, 'https://usesend.gbrown.org');
const { error } = await useSend.emails.send({
to: [email],
from: provider.from ?? 'TechTracker Admin <admin@mail.techtracker.gbrown.org>',
from:
provider.from ??
'TechTracker Admin <admin@mail.techtracker.gbrown.org>',
subject: `Reset your password - TechTracker`,
text: `Your password reset code is ${token}`,
});
if (error) throw new Error("Usesend error: " + error.message)
if (error) throw new Error('Usesend error: ' + error.message);
},
});