Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement user subscription credit budget #11

Open
ivelin opened this issue Apr 16, 2021 · 0 comments
Open

Implement user subscription credit budget #11

ivelin opened this issue Apr 16, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ivelin
Copy link
Contributor

ivelin commented Apr 16, 2021

Is your feature request related to a problem? Please describe.
Currently the auth0 user metadata tells us weather a user has an active subscription, but it does not help us determine how many notifications have been sent on behalf of the user. We need to limit exposure to potential bugs or hacks that result in unlimited spam.

Describe the solution you'd like
Add a "subscriptionPeriodCreditBudget" attribute to user profile that puts a limit on the number of premium services used during a monthly period. For example at the beginning of a month, the value can be reset to 100 and each email sent out on behalf of a user reduces the number by 1 (credit). At the beginning of the next period the number resets. In the future we can add other premium services such as SMS for 10 credits and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants