.
.
BABetter Auth
Created by bpurdyiv on 3/21/2025 in #help
Custom Admin Role - Admin Plugin
it's called authClient for a reason, it's supposed to run on the client but you're running it in an async function that if I'm guessing correctly is called in a component that is not marked by 'use client'; directive, causing Next to attempt at fetching the users on the server, which fails because there are no admin cookies
7 replies
BABetter Auth
Created by bpurdyiv on 3/21/2025 in #help
Custom Admin Role - Admin Plugin
you're not gonna believe why 😂
7 replies
BABetter Auth
Created by bpurdyiv on 3/21/2025 in #help
Custom Admin Role - Admin Plugin
I had to go through the better auth code and debug it to find out why it's not working and realized the request headers to /admin/list-users is empty hence the permission check fails
7 replies
BABetter Auth
Created by bpurdyiv on 3/21/2025 in #help
Custom Admin Role - Admin Plugin
aight I found the issue lol
7 replies