Skip to content

Type Alias: Authenticated ​

ts
type Authenticated = 
  | string
  | {
  id: string;
  name?: string;
  party?: Party;
};

Defined in: server/gateway.ts:28

Who authenticate found: a player id, or a player id with a display name. A name reaches the room's hooks as player.name.

Union Members ​

string


Type Literal ​

ts
{
  id: string;
  name?: string;
  party?: Party;
}
NameTypeDescriptionDefined in
idstringThe player id.server/gateway.ts:32
name?stringA display name, e.g. the account name.server/gateway.ts:34
party?PartyThe party the player queues with, for a matchmaker. See JoinTokenClaims.party.server/gateway.ts:36

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.