Skip to content

Add isPremium field to User model with dedicated status endpoint#1

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/check-premium-status
Draft

Add isPremium field to User model with dedicated status endpoint#1
Copilot wants to merge 2 commits into
mainfrom
copilot/check-premium-status

Conversation

Copilot AI commented Feb 27, 2026

Copy link
Copy Markdown

Users had no way to query or store premium status on their account.

Changes

  • User.js: Added isPremium: Boolean field (default: false)
  • userController.js: Added checkPremium handler returning { isPremium } for the authenticated user

Example response

GET /api/users/premium
Authorization: ******

{ "isPremium": false }

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI self-assigned this Feb 27, 2026
Co-authored-by: jzko100-ctrl <240675701+jzko100-ctrl@users.noreply.github.com>
Copilot AI changed the title [WIP] Verify premium subscription status Add isPremium field to User model with dedicated status endpoint Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants