STACKED DECKS
← Help Center

Admin guide

For: Admins

Admins look after who can do what in Stacked Decks. This guide covers what exists today: two-step login, the Roles screen and the Stores screen. It grows with each feature.

Two-step login is required

Admin powers only work when you have signed in with a 6-digit code from an authenticator app. Until you have added your authenticator, you use Stacked Decks as a normal player, and a banner says "Set up two-step login to use admin powers." on your Profile and Account settings pages.

Which app? Use an authenticator app with cloud backup, such as Google Authenticator or Microsoft Authenticator, so your codes come back if you lose your phone. Don't store the codes in the same password manager as your passwords: one stolen vault would then hold both steps.

Setting it up

  1. Go to Profile › Account settings › Two-step login
  2. Type a name (for example Phone app) and tap Add an authenticator
  3. In your authenticator app, add an account by scanning the picture (or type the key under it)
  4. Enter the 6-digit code it shows, then tap Add authenticator

From now on, after your password, Google or Discord, you are taken straight to Enter your code every time you sign in.

A new phone: on the same page, remove your authenticator and add it again on the new phone. Until you do, admin powers stay locked.

Before you become an admin, two more things are required:

  • Turn on two-step login on the services behind the app too (Supabase, Vercel, GitHub, Zoho, Bitwarden, Resend, Namecheap, the contact Google account and the Discord developer account)
  • Keep a printed or written copy of the recovery or backup codes for those services, and their key credentials (for Bitwarden, its recovery code and master password), safely offline at home, not only in Bitwarden

Rashed keeps the list.

The Roles screen

Open Profile › Roles (the link only appears for admins). It shows:

  • Staff: everyone who holds a role besides Player, with their roles. For admins it also shows whether their authenticator is set up
  • Find an account: type a Stacked Decks ID to see one account's authenticator (see below)
  • Give a role: type the person's Stacked Decks ID (it is on their profile page, like SD-40718263), choose a role and tap Give role. One person can hold several roles
  • Remove a role: tap Remove next to the role, then Yes, remove it. There must always be at least one admin, so the last admin can't be removed
  • What each role may do: open a role and tap a permission to turn it on or off. Admins can always do everything. Some permissions are admin only and can't be given to a role (banning, titles, seasons, preset pictures, the username filter, roles, permissions, invite codes, the audit log and the Admin page)

Event permissions only work at events where the person is staff. A judge at one event has no powers at another.

Every change on this screen is written to the audit log with who made it.

The Stores screen

Open Profile › Stores (admin) (the link only appears for admins). Stores are game stores that host events. A store can't sign itself up: you create it here, and it then has a public page that anyone can open, signed in or not.

  • Create a store: type its name, choose its city and tap Create store. Leave Link empty and the page address is made from the name, for example /stores/riyadh-card-house; if that is taken it adds the city, then a number. Type a link of your own if you prefer
  • Edit the page: open Edit the page under a store. Every store needs a short description (up to 300 characters), an address and its Google Maps link (in Google Maps, tap Share, then Copy link). WhatsApp, Instagram and opening hours are optional. The city is chosen from a fixed list
  • A new link: change the Link field to give a store a new address. The old link keeps working and sends people to the new one, so links a store already shared still work. Nobody else can ever take an old link
  • Close a store: tap Close the store, then Yes, close it. Its page stays up and says "This store has closed"; its past events and results stay. A closed store is left out of the Stores list unless someone turns on Show closed stores. Tap Reopen the store to open it again
  • The official Stacked Decks store is always there and always first. It shows Online instead of a city, has no address, and can't be closed. It is where Stacked Decks' own events will belong
  • Add a city: at the bottom, type the city's name and tap Add city. Add a city before you create the first store there

Every change on this screen is written to the audit log with who made it. Store owners and staff arrive in the next update: for now only admins edit stores.

If someone loses their authenticator

An admin who lost their phone: another admin opens Profile › Roles, finds them under Staff, and removes their authenticator under Their authenticator. Only do this when you are sure it is really them: ask over a call or a channel you already trust. They then sign in with their password and add a new authenticator.

A player who lost their authenticator must first email contact@stacked-decks.com from the email address on their account. Check that the sending address matches the account's, then open Profile › Roles › Find an account, type their Stacked Decks ID, and remove their authenticator there.

Every removal is written to the audit log.

If there is only one admin, nobody can use the Roles screen: the Supabase project owner removes the authenticator in the Supabase dashboard. The steps are in the runbook Someone lost their authenticator in the project docs. That is why we recommend keeping at least two admins.