Magic Link email validation and error handling
I've followed the docs on how to implement magic link, however i feel there is a few things missing from the example, email validation and error handling.
Can someone please guide me in the right direction with the syntax and or structure of how to implement this?
Can someone please guide me in the right direction with the syntax and or structure of how to implement this?
Solution
I figured out how to pull errors:
and validation can be done before calling
const {error} = await authClient.signIn.magicLink({and validation can be done before calling
signIn.magicLink