veith
veith
BABetter Auth
Created by veith on 4/21/2025 in #help
global onSuccess question
Hi guys, first of all - thanks for the great library! I'm just following the documentation, and maybe missing something here:
export const { signIn, useSession, token} = createAuthClient({
fetchOptions: {
onSuccess: (ctx) => {
debugger;
},
},
plugins: [jwtClient()]
})
export const { signIn, useSession, token} = createAuthClient({
fetchOptions: {
onSuccess: (ctx) => {
debugger;
},
},
plugins: [jwtClient()]
})
this global onSuccess callback is never executed, callbacks in social login e.g. are working. What am I missing? Thanks!
4 replies