Ritik
Ritik
BABetter Auth
Created by Ritik on 5/20/2025 in #help
signout doesn’t show logged out right away; I have to reload the page to see it.
@bekacru can not we make a new request to the server to refetch the data on signout inside the better auth ?? btw now it's working 🙂
6 replies
BABetter Auth
Created by Ritik on 5/20/2025 in #help
signout doesn’t show logged out right away; I have to reload the page to see it.
Hi @bekacru @Ping I've tried everything I can to solve this issue but don't understand what's causing it. Initial thought was that it was a middleware issue but after carefully checking, I don't think so. Surprisingly it works in the local mode. I'd appreciate if you could take a look at this.
6 replies
BABetter Auth
Created by Ritik on 5/20/2025 in #help
signout doesn’t show logged out right away; I have to reload the page to see it.
@rds Hi Rudro, I've checked your titan repo for this issue and tried signing with google at https://titan.rdsx.dev, and it works fine. But I have the same implementation for signout, and in my case when i click on signout, it doesn't redirect to the root page. https://analytics.ritiksharma.me Surprisingly, it is working fine locally. If you have some time, could you please check the issue at a high level?
6 replies
BABetter Auth
Created by JWW on 3/27/2025 in #help
SignOut function doesn't immediately re-invoke session change
@Ping if you know
19 replies
BABetter Auth
Created by JWW on 3/27/2025 in #help
SignOut function doesn't immediately re-invoke session change
but it works fine in dev mode
19 replies
BABetter Auth
Created by JWW on 3/27/2025 in #help
SignOut function doesn't immediately re-invoke session change
that's what I did here:
onclick = {async () => {
await signOut({
fetchOptions: {
onSuccess() {
router.push(ROUTES.ROOT);
}
}
})
}}
onclick = {async () => {
await signOut({
fetchOptions: {
onSuccess() {
router.push(ROUTES.ROOT);
}
}
})
}}
19 replies
BABetter Auth
Created by JWW on 3/27/2025 in #help
SignOut function doesn't immediately re-invoke session change
I have the same issue with signout here: https://github.com/ritiksharmarj/analytics.ritiksharma.me/blob/main/components/app-header.tsx#L77 when clicked on signout, it just stop there that's it. no redirection to root page. anyone find solution here? @bekacru
19 replies