Ho-kage
Explore posts from serversBABetter Auth
•Created by Ho-kage on 3/8/2025 in #help
Sign up control
Hey guys. Is there a way to disable sign up from the public (authClient) but still have it enabled for the server code (auth.api)? I don’t want anyone to be able to sign up. I want admins to create users. I’m imagining that a smart person who knows how the auth clients calls the API would be able to create users if it is enabled .
10 replies
Action triggering revalidation without cookie
I am implementing an admin site which uses BetterAuth. When implementing an action it seems it tries to fetch fresh data (my createAsync call) but it fails my admin validation because the cookie doesn't seem to be present. Not quite sure how I get around this. The isAdmin function is shown below (it gets called by functions in a "use server" context).
3 replies
Loading google fonts
I'm trying to load a google font with the <Link> component but it doesn't seem to be working
<Link href="https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Recursive:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />
It puts an <a> tag in the body with link=true as an attribute but nothing the font is not working.
93 replies