SxYxuse
SxYxuse
BABetter Auth
Created by SxYxuse on 4/9/2025 in #help
onAPIError not working
@bekacru sorry for the ping, should be great when onAPIError is fixed that we can transform the error like rebuild it and than rethrow it
15 replies
BABetter Auth
Created by SxYxuse on 4/9/2025 in #help
onAPIError not working
Will you fix this issue in next release ?
15 replies
BABetter Auth
Created by Furkan Özay on 3/23/2025 in #help
onApiError custom error page
Will be great when fixed by @bekacru
31 replies
BABetter Auth
Created by Furkan Özay on 3/23/2025 in #help
onApiError custom error page
31 replies
BABetter Auth
Created by Furkan Özay on 3/23/2025 in #help
onApiError custom error page
Okay, me too
31 replies
BABetter Auth
Created by Furkan Özay on 3/23/2025 in #help
onApiError custom error page
@Furkan Özay does your onAPIError works ? The log work when an api error is thrown somewhere ?
31 replies
BABetter Auth
Created by SxYxuse on 4/9/2025 in #help
onAPIError not working
Seem the onAPIError is not reached
15 replies
BABetter Auth
Created by SxYxuse on 4/9/2025 in #help
onAPIError not working
But I get the ApiError in the console like before
15 replies
BABetter Auth
Created by SxYxuse on 4/9/2025 in #help
onAPIError not working
It don’t work
15 replies
BABetter Auth
Created by SxYxuse on 4/9/2025 in #help
onAPIError not working
I try with auth.api.checkOrganizationSlug with an existing slug to get an error
15 replies
BABetter Auth
Created by SxYxuse on 4/9/2025 in #help
onAPIError not working
Same issue
15 replies
BABetter Auth
Created by SxYxuse on 4/9/2025 in #help
onAPIError not working
Yes sure, like in the docs:
import { betterAuth } from "better-auth";
export const auth = betterAuth({
//… code above
onAPIError: {
throw: true,
onError: (error, ctx) => {
// Custom error handling
console.error("Auth error:", error);
},
errorURL: "/auth/error"
},
})
import { betterAuth } from "better-auth";
export const auth = betterAuth({
//… code above
onAPIError: {
throw: true,
onError: (error, ctx) => {
// Custom error handling
console.error("Auth error:", error);
},
errorURL: "/auth/error"
},
})
15 replies
BABetter Auth
Created by SxYxuse on 3/18/2025 in #help
Use auth on client or server (NEXTJS)
Okay ty
13 replies