-
Notifications
You must be signed in to change notification settings - Fork 70
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
Ben/dev 464 - Free allotment for New Users #169
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to change the api/ folder to check for valid subscription or a remaining trial.
Should be in the /api/security
file
Good call. Thinking something like this: unless you think we should have this call check the freeMessage allotment as well? Didn't know if that would be too tightly coupled. |
Adds header for unsubscribed users showing the current message count. Sets up a trial membership valid for 1 year when the user loads the page. Decrements using protected server/admin method hooking to prevent injection attacks.
Trial subscription metadata 👇
https://app.screencast.com/rpJGmIWHW7Ori