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!
Solution:
yeah global on sucess has some issues caues there is another one applied by the library by default. Will be fixed soon but use onResponse instead for the time being
Jump to solution
1 Reply
Solution
bekacru
bekacru3d ago
yeah global on sucess has some issues caues there is another one applied by the library by default. Will be fixed soon but use onResponse instead for the time being

Did you find this page helpful?