Update & format
This commit is contained in:
@@ -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);
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user