Commit 7baf7ba5 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Add real invite code, PIN, and location discovery to Rooms

Rooms were open-join-by-id only with no geo features, despite that being the
intended design. Generates a unique invite code server-side on every create,
adds an optional PIN (hashed like account passwords, rate-limited on guesses
via a third reuse of AuthAttempt) gating join/stream/websocket alike, and adds
optional lat/lon with a haversine-sorted nearby lookup (haversine itself
extracted to a shared geo service once a second caller needed it).
parent f05e01b4
Pipeline #1222 failed with stage
in 3 minutes and 41 seconds