You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: implement ElevenLabs voice usage gating (1hr free, then paywall)
Server gates voice at session start by querying ElevenLabs conversation
history. Free users get 1 hour; after that they need a subscription.
Token is minted server-side with a stable pseudonymous user ID
(HMAC-SHA256 of Happy user ID) so ElevenLabs never sees the real account.
- Server: derive elevenUserId, check usage, check RevenueCat server-side
- Client: always go through auth flow (remove experiments bypass)
- Wire: shared VoiceTokenResponse schema (discriminated union)
- Config: single elevenLabsAgentId picked by APP_ENV variant
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
0 commit comments