[GH-ISSUE #2267] [BUG] Reactivate a subcription throw SUBSCRIPTION_NOT_ACTIVE when a user has imcomplete subscriptions in db #9121

Closed
opened 2026-04-13 04:28:25 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Konixy on GitHub (Apr 13, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2267

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Reactivate a subcription fails when a user has imcomplete subscriptions in db.
These lines of code fetches the wrong subscription from the db and causes a SUBSCRIPTION_NOT_ACTIVE error

Current vs. Expected behavior

Excepted to find the right subscription in db

What version of Better Auth are you using?

1.2.7

Provide environment information

- OS: MacOS
- Browser: Arc (chromium)

Which area(s) are affected? (Select all that apply)

Package

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

pr #2268

Originally created by @Konixy on GitHub (Apr 13, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2267 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce Reactivate a subcription fails when a user has imcomplete subscriptions in db. [These lines](https://github.com/better-auth/better-auth/blob/8263382b9247aa9f3035eb8da429ec18c209dcf8/packages/stripe/src/index.ts#L642-L650) of code fetches the wrong subscription from the db and causes a `SUBSCRIPTION_NOT_ACTIVE` error ### Current vs. Expected behavior Excepted to find the right subscription in db ### What version of Better Auth are you using? 1.2.7 ### Provide environment information ```bash - OS: MacOS - Browser: Arc (chromium) ``` ### Which area(s) are affected? (Select all that apply) Package ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context pr #2268
GiteaMirror added the locked label 2026-04-13 04:28:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9121