Compare commits
1 Commits
main
...
debug/emai
Author | SHA1 | Date |
---|---|---|
Bruno Bernardino | 169d4fb911 |
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue