palicz
palicz
BABetter Auth
Created by palicz on 3/1/2025 in #help
Route based access control
No description
5 replies
BABetter Auth
Created by palicz on 2/21/2025 in #help
ngrok for webhooks
I tried to use ngrok for webhooks in development to achieve a static domain. Unfortunately upon logging in with OAuth 2.0 (google/github) my Better Auth always redirects me to localhost:3000. Is there any fix for this or possible workarounds?
4 replies
BABetter Auth
Created by palicz on 1/20/2025 in #help
Protected routes
Hello! I'd like to achieve a route for example /admin which should be only accessible for "admin" role users. If the user have "user" role, they should be redirected to the home page. Also I'd followed the docs, but I don't know how to make the /sign-in route inaccessible for those who are already signed in. Later I'd like more complex role based access control for routes. How to achieve this?
66 replies
BABetter Auth
Created by palicz on 1/1/2025 in #help
How to add the sign-in button to the wrapper?
I downloaded the demo project for NextJS and would like to know if there's any way to place the sign-in button to the wrapper? I made it show in the wrapper, but unfortunately it lost all the dynamic render and is no longer a smart component. When I sign in it doesn't change to dashboard mode and upon signing out it doesn't show "Sign In".
1 replies