Repository navigation
feat(pass): Profullstack Pass gives Pro until it ends - #183
Merged
Merged
Conversation
CoinPay sign-in reads the userinfo `pass` claim (coinpay-onboard ^0.5.0) and calls the new service-role plan_apply_coinpay_pass() for the account bound to the CoinPay sub. It writes profiles.plan / plan_expires_at with max semantics (bigger plan kept, expiry = GREATEST(running, pass end)), so effectivePlan, LiveKit limits and the desktop app all see Pro, and stores coinpay_pass_until so a repeat sign-in is a no-op. Pricing links the Pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan50 finding(s) HIGH/CRITICAL: 4 | MEDIUM: 24 | LOW: 22
Snippets are redacted; ThreatCrush never prints matched credential material. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Profullstack Pass: a CoinPay user who deposited $99 into their own CoinPay wallet gets a free month of PairUX Pro.
passvia@profullstack/coinpay-onboard^0.5.0 and callsplan_apply_coinpay_pass(user, until)for the account bound to the CoinPaysub(never by email).20261107120000_coinpay_pass.sql:profiles.coinpay_pass_until+ service-role-only RPC. It writesplan/plan_expires_atwith max semantics (a running Team plan is kept; expiry =GREATEST(running expiry, pass end)), so every existing reader (webeffectivePlan, LiveKit limits, desktop entitlement) sees Pro without code changes. Idempotent on the pass end.apps/web/src/lib/coinpay-pass.test.ts.🤖 Generated with Claude Code