How to verify magic link token via custom URL?
I've been following https://www.better-auth.com/docs/plugins/magic-link#verify-magic-link. I've mounted an URL on my client app that uses the verify method from auth client to verify the token. The verification works but I am unable to redirect to my callback URL. I'm running my API on port 3000 and client dev server on 4200. I got some CORS error but disabling cors (setting cors: true within vite config) didn't solved that much.
Is there any way to do it properly?
I think it can be done without setting a callbackURL but I feel like I won't be able to properly handle errors as it seems that on error, we're automatically redirected to the root URL (which seems to be the root of API server)
Is there any way to do it properly?
I think it can be done without setting a callbackURL but I feel like I won't be able to properly handle errors as it seems that on error, we're automatically redirected to the root URL (which seems to be the root of API server)