Beta testing stripe plugin

Hey! I'm trying to follow these:
https://www.better-auth.com/docs/plugins/stripe

instructions to get the stripe plugin working, but I get stuck at the db migration step, here's the error I'm getting:
npx @better-auth/cli generate
2025-03-02T08:26:29.329Z ERROR [Better Auth]: [#better-auth]: Couldn't read your auth config. Error: Neither apiKey nor config.authenticator provided
    at Stripe._setAuthenticator (file:///home/dd0k/prog/site/node_modules/stripe/esm/stripe.core.js:163:23)
    at new Stripe (file:///home/dd0k/prog/site/node_modules/stripe/esm/stripe.core.js:99:14)
    at /home/dd0k/prog/site/lib/auth.ts:7:22
    at async Function.import (/home/dd0k/.npm/_npx/167ca1f116d365e6/node_modules/jiti/dist/jiti.cjs:1:199772)
    at async resolveConfig (file:///home/dd0k/.npm/_npx/167ca1f116d365e6/node_modules/c12/dist/shared/c12.PQMoYrit.mjs:346:18)
    at async loadConfig (file:///home/dd0k/.npm/_npx/167ca1f116d365e6/node_modules/c12/dist/shared/c12.PQMoYrit.mjs:146:23)
    at async getConfig (file:///home/dd0k/.npm/_npx/167ca1f116d365e6/node_modules/@better-auth/cli/dist/index.mjs:234:30)
    at async Command.generateAction (file:///home/dd0k/.npm/_npx/167ca1f116d365e6/node_modules/@better-auth/cli/dist/index.mjs:643:18)


I'm using prisma connected to a neon db, any help is appreciated!
Stripe plugin for Better Auth to manage subscriptions and payments.
Was this page helpful?