weepa_ho3
BABetter Auth
•Created by weepa_ho3 on 3/3/2025 in #help
Typescript error after upgrade to v1.2.1
adding to my tsconfig fixed my problem
13 replies
BABetter Auth
•Created by weepa_ho3 on 3/3/2025 in #help
Typescript error after upgrade to v1.2.1
@keytrap-x86 next-js inside of a turborepo.
13 replies
BABetter Auth
•Created by weepa_ho3 on 3/3/2025 in #help
Typescript error after upgrade to v1.2.1
That was the first thing I tried, but unfortunately it didn't help.
13 replies
BABetter Auth
•Created by Karamazov89 on 2/6/2025 in #help
Browser back button after signing out lets you get inside private route
It’s because router is client side navigation. The redirect() returns a http 3xx response, forcing the browser to perform a full request to the new url. This ensures, that when you tap back in de browser, the previews page is requested again. Router.refresh() forces a reload, but still operates within the client-side navigation. So i still guess redirect is the way to go.
14 replies
BABetter Auth
•Created by Karamazov89 on 2/6/2025 in #help
Browser back button after signing out lets you get inside private route
The page is cached in browser i guess, not on the server/route.
14 replies
BABetter Auth
•Created by Karamazov89 on 2/6/2025 in #help
Browser back button after signing out lets you get inside private route
import { redirect } from 'next/navigation';
redirect('/');
14 replies
BABetter Auth
•Created by Karamazov89 on 2/6/2025 in #help
Browser back button after signing out lets you get inside private route
Try redirect instead of router
14 replies
BABetter Auth
•Created by Karamazov89 on 2/6/2025 in #help
Browser back button after signing out lets you get inside private route
Maybe a caching issue? I had the same problem because the page was in the cache and no new request was made. Changing the way I handled the redirect solved it.
14 replies
BABetter Auth
•Created by weepa_ho3 on 2/4/2025 in #help
Update active organization after creation
@abt i got a better workaround. I call the refetch via the authClient after the success response
6 replies
BABetter Auth
•Created by weepa_ho3 on 2/4/2025 in #help
Update active organization after creation
I looked at the source code and it appears to me that the refetch should actually be triggered. @admin Do you perhaps know what might be wrong here?
6 replies
BABetter Auth
•Created by weepa_ho3 on 2/4/2025 in #help
Update active organization after creation
That would also be my approach to solving this, but it feels a bit unclean. I looked at the example and was hoping that I had simply done something wrong, but unfortunately, it behaves the same way there.
6 replies
BABetter Auth
•Created by weepa_ho3 on 2/4/2025 in #help
Type error: Property 'getFullOrganization' does not exist on type 'InferAPI
nice! Thanks!
4 replies