Skip to main content

OrgToken

No description

type OrgToken {
orgTokenId: BigInt!
orgId: BigInt!
label: String
scopes: [String!]!
appIds: [BigInt!]
environmentId: String @deprecated
kind: String! @deprecated
isActive: Boolean!
expiresAt: DateTime
lastUsedAt: DateTime
revokedAt: DateTime
createdAt: DateTime!
updatedAt: DateTime!
}

Fields​

OrgToken.orgTokenId ● BigInt! non-null scalar​

Unique token id (primary key, BigInt as string).

OrgToken.orgId ● BigInt! non-null scalar​

Organization that owns this token (BigInt as string).

OrgToken.label ● String scalar​

Optional human-readable label.

OrgToken.scopes ● [String!]! non-null scalar​

What the token may do: 'players:mint' (sign the org's managed players in, mintManagedPlayerToken) and 'players:manage' (provision, list, rename, disable, sign out and delete them). A token with no scope can do nothing.

OrgToken.appIds ● [BigInt!] list scalar​

The apps the token may sign players in to; null means every app of the organization.

OrgToken.environmentId ● String deprecated scalar​

DEPRECATED

Environment-bound service tokens were retired with dedicated environments; always null.

For 'service' tokens, the environment id (UUID) the token is scoped to; null for user-minted tokens.

OrgToken.kind ● String! deprecated non-null scalar​

DEPRECATED

Service tokens were retired; every org token is 'user_minted'. Read scopes for what a token may do.

'user_minted' (human-created) or 'service' (minted by the control plane for per-tenant game-apis).

OrgToken.isActive ● Boolean! non-null scalar​

False once revoked; inactive tokens cannot authenticate.

OrgToken.expiresAt ● DateTime scalar​

Optional expiry timestamp; null means the token never expires.

OrgToken.lastUsedAt ● DateTime scalar​

When the token last authenticated a request, if ever.

OrgToken.revokedAt ● DateTime scalar​

When the token was revoked, if it has been.

OrgToken.createdAt ● DateTime! non-null scalar​

When the token was created.

OrgToken.updatedAt ● DateTime! non-null scalar​

When the token was last updated.

Returned By​

orgTokens query ● updateOrgToken mutation