[GH-ISSUE #2261] [BUG] Can't restore a cancelled trialing subscription #26441

Closed
opened 2026-04-17 17:01:52 -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/2261

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Call subscription.restore from the authClient for a cancelled trialing subscription

Current vs. Expected behavior

Throws a SUBSCRIPTION_NOT_FOUND error when trying to restore a subscription with trialing status because of this line

What version of Better Auth are you using?

https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@2259

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

#2262

Originally created by @Konixy on GitHub (Apr 13, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2261 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce Call `subscription.restore` from the authClient for a cancelled trialing subscription ### Current vs. Expected behavior Throws a `SUBSCRIPTION_NOT_FOUND` error when trying to restore a subscription with trialing status because of [this line](https://github.com/better-auth/better-auth/blob/8263382b9247aa9f3035eb8da429ec18c209dcf8/packages/stripe/src/index.ts#L674) ### What version of Better Auth are you using? https://pkg.pr.new/better-auth/better-auth/@better-auth/stripe@2259 ### 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 #2262
GiteaMirror added the locked label 2026-04-17 17:01:52 -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#26441