bwhitney
BABetter Auth
•Created by bwhitney on 2/21/2025 in #help
Soft Delete Organisations
I want to soft delete organisations rather than hard delete for auditing reasons. Can i achieve using this?
const auth = betterAuth({
organizationDeletion: {
disabled: true, //to disable it altogether
beforeDelete: async(data, request)=>{
// a callback to run before deleting org
},
afterDelete: async(data, request)=>{
// a callback to run after deleting org
}
}
})
Also if i disabled: true does beforeDelete and afterDelete not fire at all?2 replies
BABetter Auth
•Created by bwhitney on 2/12/2025 in #help
Admin Plugin - access "role" client side
How can i get role to appear on user object client side. I want to have logic that shows UI based on a users role.
5 replies
BABetter Auth
•Created by bwhitney on 2/7/2025 in #help
Organisation
When inviting a user to an organisation does the account already need to exist in the database?
5 replies
BABetter Auth
•Created by bwhitney on 2/7/2025 in #help
Admin plugin and social logins
I have implemented oauth logins with Microsoft. I also want to manage accounts using admin plugin but as soon as i add the admin plugin my social logins for new users stop working. I get an unable_to_create_user error. Is this by design? I am setting a B2B scenario where i would like to stage user's in my database and then invite them into my Entra ID Tenant which would allow then to login with Oauth. Hopefully this make sense. 🙂
2 replies