Nelson
Explore posts from serversBABetter Auth
•Created by Nelson on 3/2/2025 in #help
How to correctly update the user info?
I'm fetching it like this.
8 replies
BABetter Auth
•Created by Nelson on 3/2/2025 in #help
How to correctly update the user info?
Thanks for the response! If I would like to use the ORM approach:
How to invalidate the session cache properly? Or should I stick with
router.refresh()
in Next.js?8 replies
BABetter Auth
•Created by Nelson on 3/2/2025 in #help
How to correctly update the user info?
I did it before this approach. But the session isn’t updated unless using router.refresh()
8 replies
BABetter Auth
•Created by Nelson on 3/2/2025 in #help
How to manually invalidate session data?
Fixed by using
auth.api.updateUser
and nextCookies()
plugin6 replies
BABetter Auth
•Created by Nelson on 3/2/2025 in #help
How to manually invalidate session data?
Thanks for your response! I'm still a bit confused about this. Currently, I'm retrieving all my sessions using:
What should I do in this case?
6 replies
BABetter Auth
•Created by Highlighted on 2/23/2025 in #help
Better-auth and e2e tests
Thanks! But I end up using this one:
8 replies
BABetter Auth
•Created by Highlighted on 2/23/2025 in #help
Better-auth and e2e tests
Hello, sorry to bother. I'm wondering how to achieve the same result with social provider?
8 replies
BABetter Auth
•Created by Nelson on 3/1/2025 in #help
GitHub OAuth: user name can be null
Oh, my mistake. The name will never be null.
6 replies
BABetter Auth
•Created by Nelson on 3/1/2025 in #help
GitHub OAuth: user name can be null
name: text('name').default('Anonymous').notNull()
I end up using this.6 replies