Skip to main content Module store Copy item path Source ActiveInvite An active invite for email in any league. VerifiedInvite The result of a successful token verification. find_active_any The most recent active (unaccepted, unexpired) invite for email across
all leagues. Resolves which league a non-admin creates their team in. find_active_by_id The invite invite_id, when it is active (unaccepted, unexpired) and
addressed to email. Validates a session-carried pending invite. is_member True when email already owns a team in the league (already a member). league_id_of The league an invite belongs to. None for an unknown invite id. list_for_league All invites for a league, newest first, for the commissioner’s list. mark_accepted Mark an invite accepted, consuming it. reissue Mint a new secret onto an outstanding invite: replace its hash and restart
the 14-day clock. Scoped to league_id and inert once accepted, like
revoke . Returns the invite’s target email when a row matched — None
means the invite is gone, accepted, or belongs to another league. revoke Delete an outstanding invite, scoped to its league. No-op if already accepted. upsert Insert or replace the outstanding invite for (league_id, email), setting a
14-day expiry. Returns the invite’s row id. verify Verify a raw "{id}.{secret}" token. Constant-time: always one argon2 verify.