Matheus Sa
BABetter Auth
•Created by Matheus Sa on 4/5/2025 in #help
Stripe plugin
Using the Stripe plugin, I have the subscription configuration:
subscription: {
enabled: true,
plans: [
{
name: 'Free',
limits: {
projects: 20,
storage: 50,
},
},
{
name: 'Starter',
priceId: STARTER_PRICE_ID.default,
annualDiscountPriceId: STARTER_PRICE_ID.annual,
limits: {
projects: 20,
storage: 50,
},
},
{
name: 'Standard',
priceId: STANDARD_PRICE_ID.default,
annualDiscountPriceId: STANDARD_PRICE_ID.annual,
limits: {
projects: 20,
storage: 50,
},
},
{
name: 'Profession',
priceId: PROFESSION_PRICE_ID.default,
annualDiscountPriceId: PROFESSION_PRICE_ID.annual,
limits: {
projects: 20,
storage: 50,
},
},
],
},
I would like to initially set the active plan to Free default, so that I can apply the limits even when the user is on the free plan. Is this possible?
1 replies
BABetter Auth
•Created by Matheus Sa on 3/13/2025 in #help
Use the admin and organization plugin together
I would like to use the admin and organization plugin together, how should I configure access control roles? I saw that it is configured in both plugins with import { defaultStatements, adminAc } from 'better-auth/plugins/organization/access' and import { defaultStatements, adminAc } from "better-auth/plugins/admin/access";
3 replies
BABetter Auth
•Created by Matheus Sa on 2/3/2025 in #help
Hash the password
I would like to hash a password, using the form that better-auth uses, so that when updating account in the password field, the user can access with this new password. I have a SuperAdmin process, and if this is necessary, is it possible to do this?
2 replies