Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Syncs Better Auth users with Dodo Payments for checkout, customer portal, subscriptions, usage and verified webhooks.
Use this skill ↓35% 91%+57 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 8 of 23 without it.
3 of 3 safety checks passed
Not used yet
Use @dodopayments/better-auth to synchronize Better Auth users with Dodo Payments and expose authenticated checkout, customer portal, subscription, payment, usage, and webhook endpoints.
npm install @dodopayments/better-auth dodopayments better-auth
The package exports the lowercase server functions dodopayments, checkout, portal, usage, and webhooks. Its client entry point exports dodopaymentsClient.
Every endpoint is registered by a feature in use. Include every feature that the application calls; omitting one makes its route return 404.
import { betterAuth } from "better-auth";
import DodoPayments from "dodopayments";
import { checkout, dodopayments, portal, usage, webhooks } from "@dodopayments/better-auth";
const dodoPayments = new DodoPayments({
bearerToken: process.env.DODO_PAYMENTS_API_KEY,
environment: "test_mode",
});
export const auth = betterAuth({
database: {
// your database config
},
plugins: [
dodopayments({
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.