Support for stripe entitlements in the session #921

Closed
opened 2026-03-13 08:10:01 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @AndrewCraswell on GitHub (Mar 26, 2025).

Is this suited for github?

  • Yes, this is suited for github

It would be greater to have an enableEntitlements option on the Stripe plugin. This would operate similar to how WorkOS (and soon Clerk) is checking the Stripe purchases and taking the features listed on the product/subscription and adding them to an array of entitlements that get added to the session object.

In code you would use the entitlements to determine which features to enable for the user.

Describe the solution you'd like

During authentication the users purchases should be queried, and the features on each product should be combined in an array called entitlements. This would be added to the session object.

This would be a direct compete to WorkOS and Clerk.

Describe alternatives you've considered

WorkOS, Stripe API

Additional context

https://workos.com/blog/entitlements

Originally created by @AndrewCraswell on GitHub (Mar 26, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. It would be greater to have an `enableEntitlements` option on the Stripe plugin. This would operate similar to how WorkOS (and soon Clerk) is checking the Stripe purchases and taking the features listed on the product/subscription and adding them to an array of `entitlements` that get added to the session object. In code you would use the entitlements to determine which features to enable for the user. ### Describe the solution you'd like During authentication the users purchases should be queried, and the features on each product should be combined in an array called entitlements. This would be added to the session object. This would be a direct compete to WorkOS and Clerk. ### Describe alternatives you've considered WorkOS, Stripe API ### Additional context https://workos.com/blog/entitlements
Author
Owner

@dosubot[bot] commented on GitHub (Jun 25, 2025):

Hi, @AndrewCraswell. I'm Dosu, and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • You requested a new feature for the Stripe plugin to include an enableEntitlements option.
  • This feature would compile product features into an entitlements array within the session object based on user purchases.
  • You mentioned that similar functionality is offered by WorkOS and Clerk to enhance competitiveness.
  • There have been no comments or further activity on this issue.

Next Steps

  • Is this issue still relevant to the latest version of the better-auth repository? If so, please comment to keep the discussion open.
  • Otherwise, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Jun 25, 2025): Hi, @AndrewCraswell. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. **Issue Summary** - You requested a new feature for the Stripe plugin to include an `enableEntitlements` option. - This feature would compile product features into an `entitlements` array within the session object based on user purchases. - You mentioned that similar functionality is offered by WorkOS and Clerk to enhance competitiveness. - There have been no comments or further activity on this issue. **Next Steps** - Is this issue still relevant to the latest version of the better-auth repository? If so, please comment to keep the discussion open. - Otherwise, this issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Author
Owner

@xorweak commented on GitHub (Jun 26, 2025):

Hi, @AndrewCraswell. I'm Dosu, and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • You requested a new feature for the Stripe plugin to include an enableEntitlements option.
  • This feature would compile product features into an entitlements array within the session object based on user purchases.
  • You mentioned that similar functionality is offered by WorkOS and Clerk to enhance competitiveness.
  • There have been no comments or further activity on this issue.

Next Steps

  • Is this issue still relevant to the latest version of the better-auth repository? If so, please comment to keep the discussion open.
  • Otherwise, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

it is still relevant. I'm looking for a product-purchase feature, and this would help me a lot for my SaaS.

@xorweak commented on GitHub (Jun 26, 2025): > Hi, [@AndrewCraswell](https://github.com/AndrewCraswell). I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. > > **Issue Summary** > > * You requested a new feature for the Stripe plugin to include an `enableEntitlements` option. > * This feature would compile product features into an `entitlements` array within the session object based on user purchases. > * You mentioned that similar functionality is offered by WorkOS and Clerk to enhance competitiveness. > * There have been no comments or further activity on this issue. > > **Next Steps** > > * Is this issue still relevant to the latest version of the better-auth repository? If so, please comment to keep the discussion open. > * Otherwise, this issue will be automatically closed in 7 days. > > Thank you for your understanding and contribution! it is still relevant. I'm looking for a product-purchase feature, and this would help me a lot for my SaaS.
Author
Owner

@dosubot[bot] commented on GitHub (Sep 25, 2025):

Hi, @AndrewCraswell. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested an enableEntitlements option for the Stripe plugin to aggregate product/subscription features into an entitlements array for feature gating.
  • The feature is recognized as relevant and beneficial for SaaS products.
  • The issue has been inactive for some time but remains open for further discussion or implementation.
  • Maintainers have acknowledged the feature's value but no progress has been made yet.

Next Steps:

  • Please let me know if this feature is still relevant to the latest version of better-auth by commenting on this issue.
  • If I don’t hear back within 7 days, I will automatically close the issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Sep 25, 2025): Hi, @AndrewCraswell. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested an `enableEntitlements` option for the Stripe plugin to aggregate product/subscription features into an `entitlements` array for feature gating. - The feature is recognized as relevant and beneficial for SaaS products. - The issue has been inactive for some time but remains open for further discussion or implementation. - Maintainers have acknowledged the feature's value but no progress has been made yet. **Next Steps:** - Please let me know if this feature is still relevant to the latest version of better-auth by commenting on this issue. - If I don’t hear back within 7 days, I will automatically close the issue. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#921