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?
Solution:Jump to solution
I figured out how to pull errors:
const {error} = await authClient.signIn.magicLink({
and validation can be done before calling signIn.magicLink
...1 Reply
Solution
I figured out how to pull errors:
const {error} = await authClient.signIn.magicLink({
and validation can be done before calling signIn.magicLink