varundeva
BABetter Auth
•Created by varundeva on 3/3/2025 in #help
Need guidance to set Captcha!
await authClient.signIn.email({
email: "[email protected]",
password: "secure-password",
fetchOptions: {
headers: {
"x-captcha-response": turnstileToken,
},
},
});
Whats turnstileToken here?
from where i can get this?
Anyone implemented plz help. turnstileToken is not secret key right?1 replies
BABetter Auth
•Created by varundeva on 2/17/2025 in #help
Which is proper way for api authentication for nextJs api? taking more time to give response

13 replies
BABetter Auth
•Created by varundeva on 2/9/2025 in #help
Why im getting error : The field "identifier" does not exist in the "verification" schema. ?

26 replies
BABetter Auth
•Created by varundeva on 1/18/2025 in #help
Can i implement better-auth in the common backend? Or microservices?
Hello
I already built an backend in expressJS and implemented only native email password authentication
Also the main thing is that I added a kind of my own method to restrict a few api and screens in frontend using Module , Role, Permission
Each module will have Permissions like ORDER_VIEW, ORDER_CREATE, ORDER_EXPORT_BUTTON etc
Its combination of Module and Permission name. These permissions are joined with Roles. Users can be assigned with Role or specific permission. In frontend fetching all users permission and based on that Components will be rendered, in api also checking permissions using middleware.
Currently I'm building an admin application in React.
Next Planned to build User facing applications using NextJs (SEO Focused) also in future React Native mobile applications.
The plan is to use the same backend server.
Since I have not yet finished additional things which are like email verification, forgot password etc
If i want to replace the complete authentication part with better-auth how can I do it?
Is it possible to accommodate my plan?
1 replies
BABetter Auth
•Created by varundeva on 12/11/2024 in #help
Is it possible to use nextJS and ExpressJs?
I want to understand one thing
Usually in MERN application i was doing authentication and authorised using expressJs Jwt and http only cookie
Suppose if I use nextJs and expreesJs for complex logics how can i validate the api calls at express js server?
Can anyone explain how to do authentication and authorisation outside the nextJs ?
8 replies