Ping
Ping
BABetter Auth
Created by Elite on 5/19/2025 in #help
update additional field on user object via route handler
I believe you miss understood him, in Better-Auth, we have database hooks: https://www.better-auth.com/docs/concepts/database#database-hooks
7 replies
BABetter Auth
Created by $golddy on 5/20/2025 in #help
create organization on signup
3 replies
BABetter Auth
Created by samk on 5/10/2025 in #help
API Keys at an organization level
Unfortunutely not, after discussing it with Bekacru we decided that the current solution works, just need use metadata.
5 replies
BABetter Auth
Created by Senso on 5/19/2025 in #help
Disable some of the default endpoints
Sure, it's do-able, you'll need to look into hooks and check if a request is hitting the sign-up method, then run checks and see if the email is part of a list of valid invited list of users
5 replies
BABetter Auth
Created by Senso on 5/19/2025 in #help
Disable some of the default endpoints
You can pass disabledPaths in the auth config: https://www.better-auth.com/docs/reference/options#disabledpaths
5 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
Just use your ORM, that's updating the session.
43 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
Yes.
43 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
You can't set that via updateUser. You need to use your ORM to set this
43 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
In this case where you're just wanting the customSession inference, just use the customSessionClient.
43 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
No description
43 replies
BABetter Auth
Created by Tyler on 5/16/2025 in #help
Can I delete/remove the default "user" role when using admin()
I don't think so, unfortunately.
3 replies
BABetter Auth
Created by aswnss on 5/17/2025 in #help
Inferring additional fields on hooks
Hey guys ( @aswnss, @Rufis ), this is a known limitation of Better-auth. However I do have a PR which fixes this. Once merged your issue will be resolved. You can track the PR here: https://github.com/better-auth/better-auth/pull/2158
9 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
Both of them act differently, the first ss is to infer any additionalFields or mapped fields you may have defined in your auth config. The second is purely for mapping the session & user by your customSession plugin
43 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
But you may have other stuff defined in options, 🤔
43 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
Most cases, the reason why the user and session become unknown is because the auth config inferred the plugins array as empty [].
43 replies
BABetter Auth
Created by Prashant on 5/17/2025 in #help
how to update the session
May I see where you defined options?
43 replies
BABetter Auth
Created by BannedNull on 5/16/2025 in #help
auth.api.getSession() returns unknown for user and session
No description
7 replies
BABetter Auth
Created by BannedNull on 5/16/2025 in #help
auth.api.getSession() returns unknown for user and session
Unrelated to your issue, but are you sure you setup the schema correctly? Normally we don't pass the user schema direct like that
7 replies
BABetter Auth
Created by BannedNull on 5/16/2025 in #help
auth.api.getSession() returns unknown for user and session
Can I see your auth config?
7 replies
BABetter Auth
Created by SW9876 on 5/12/2025 in #help
generateName in Anonymous plugin for username instead of name
No description
10 replies