Temporary debugging logic for #439

This commit is contained in:
Bruno Bernardino 2022-05-18 15:15:48 +01:00
parent 9fb954e560
commit 169d4fb911
No known key found for this signature in database
GPG Key ID: D1B0A69ADD114ECE
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ export class EmailAuthServer implements AuthServer {
);
return { email, requestId, sentAt };
} catch (e) {
console.log(e);
throw new Err(ErrorCode.AUTHENTICATION_FAILED, `Failed to send email to ${email}`);
}
} else {
@ -55,6 +56,7 @@ export class EmailAuthServer implements AuthServer {
await this.messenger.send(authenticator.state.email, message);
return { email, subject: message.title, sentAt };
} catch (e) {
console.log(e);
throw new Err(ErrorCode.AUTHENTICATION_FAILED, `Failed to send email to ${email}`);
}
}