index/variables/TOKEN_NAME_PATH_CONSTRAINT.md
constTOKEN_NAME_PATH_CONSTRAINT:TokenNameConstraint
A token name taken from the path (or a @RequirePool() lookup) with no DTO: the backend checks no
format, the pool must exist. The longest name a pool can have is its column (VARCHAR 255), and names
are letters and digits only, so those are the bounds (a launched name of 21+ characters passes the
chain and the bundler and is served here; only the DTO routes refuse it).
Routes: /v1/tokens/:tokenName and everything under it (stream control, recordings, simulcasts,
bans, image, stats, role, config), /live/:tokenName/chat, GET /v1/messages/pinned,
GET/DELETE /v1/token-bans/:tokenName.
token name constraint require pool