Referrals 0.6.2: Earlier code users pass the invite-only gate
Referrals 0.6.2 helps invite-only sites recognise people who already signed up with a code. PhoenixKit core’s access gate can now ask the module whether a user has ever redeemed any referral code.
People who redeemed a code under Referrals 0.4 have a record of the use but no mark on their account saying they met the requirement. The new check answers from the usage records, so it still counts a code that has since expired, been switched off or run out of uses. Core then marks the account, so each account is checked at most once. An invalid user ID answers “no” instead of raising an error.
The code form and the settings page also switch to daisyUI 5’s field layout classes. No migration: update the dependency.
Full release notes: Referrals 0.6.2
0.6.2 · 14 August 2026
Added
signup_use_exists?/1/ReferralCodeUsage.exists_for_user?/1— whether a user has ever redeemed any referral code. Core’s invite-only access gate uses this to lazily stamp accounts that redeemed under referrals 0.4, which have a usage row but noreferral_satisfied_at. Invalid UUIDs returnfalserather than raising.
Referrals 0.6.2. Install or update: {:phoenix_kit_referrals, "~> 0.6"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.