XUIDECK

Multiplayer

Leagues

Make a league. Share the 6-letter code. Friends join, pick five, play you every week.

Sign in so friends on other phones can join your 6-letter code.

Create

Join

Yours

None yet. Create one above.

One-time setup

Finish Firebase

Skip the SDK snippet. The app is already wired. Flip these three switches so a friend can join from another phone.

  1. 1. Sign-in methods

    Authentication, Sign-in method: enable Google and Email/Password.

  2. 2. Authorized domains

    Authentication, Settings, Authorized domains: add fantasy.xuideck.com and xuideck-fantasy.vercel.app

  3. 3. Firestore

    Build, Firestore Database, Create database, production mode. Then Rules, replace with this and Publish.

    rules_version = '2';
    service cloud.firestore {
      match /databases/{database}/documents {
        match /leagues/{code} {
          allow read: if request.auth != null;
          allow create: if request.auth != null
            && request.resource.data.commissionerId == request.auth.uid
            && request.auth.uid in request.resource.data.memberUids;
          allow update: if request.auth != null
            && (request.auth.uid in resource.data.memberUids
              || request.auth.uid in request.resource.data.memberUids);
        }
      }
    }
Firebase project
Ready

Sign in above, create a league, send the code. Until Firestore is on, the code stays on this device.