MagicLink `sendMagicLink` thrown errors are not sended as error response.

Hey, I don't know if it's a bug, but I can't find a way to handle errors on client side when plugin methods fails...
plugins: [
magicLink({
sendMagicLink: async ({ email, token, url }, request) => {
throw new Error("Issue while sending email")
},
}),
],
plugins: [
magicLink({
sendMagicLink: async ({ email, token, url }, request) => {
throw new Error("Issue while sending email")
},
}),
],
Does someone have an idea ?
1 Reply
Mattèo
MattèoOP3w ago
The only http status I got is 500, which is not very convenient

Did you find this page helpful?