User Cancelling Authentication Redirects to Better Auth Error Page
this is my code for facebook login, i have the errorCallbackURL to go to "/sign-in" but it doesn't fall back to this redirect instead it goes staright to the default better auth error page. my database is fully set up, the error in the url says:
Solution:Jump to solution
ended up fixing this by adding errorURL to my betterAuth for the onAPIError property
``` onAPIError: {
throw: true,
onError: (error, ctx) => {
console.error("Auth error:", error);...
5 Replies
Have you checked your logs like terminal logs
Yea everything looked fine
this is what i see in my logs

is the error expected ? and you trynna check if it is redirected to the /sign-in
Solution
ended up fixing this by adding errorURL to my betterAuth for the onAPIError property