Compare commits

...

1 Commits

Author SHA1 Message Date
Bruno Bernardino 169d4fb911
Temporary debugging logic for #439 2022-05-18 15:15:48 +01:00
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}`);
}
}