Optiview Realtime Master JWT Generator

Generate Subscribe tokens using a master token, with IPv4 restrictions and IPv4/IPv6 client IP metadata embedded in the JWT. Add IPV6 Blocking at token creation level.
Inputs
Your Millicast master token. Keep this secret; do not expose to browsers in production.
Millicast account identifier.
The stream name your viewer will subscribe to.
If left blank, a random numeric ID will be generated.
JWT exp = now + lifetime (UTC). Max 1440 minutes (24h) for safety.
Any reference: username, campaign, session, etc. It will be stored in meta.
IPv4 only (Millicast restriction). The current client IPv4 (if any) is auto-added.
IPv6 still gets logged in meta.clientIp and meta.ipData but not enforced here.
Automatically logs your IPv4/IPv6, user agent, and timestamp into the JWT meta.
You can mirror this JSON into a database row for auditing or analytics.
Uses HS256 & master token · IP-aware