API reference / @jsprismarine/prismarine / editions/bedrock/LoginIdentity
editions/bedrock/LoginIdentity
Functions
identityFromXUID()
identityFromXUID(
xuid):string
Defined in: packages/prismarine/src/editions/bedrock/LoginIdentity.ts:77
Derives the protocol's version 3 identity UUID from an Xbox Live id.
Parameters
xuid
string
Returns
string
parseLoginIdentity()
parseLoginIdentity(
login):object
Defined in: packages/prismarine/src/editions/bedrock/LoginIdentity.ts:96
Reads the player identity, skin, and device details in a framed Login payload.
Call this only after confirming that the client's protocol version matches the connection codec. Unsupported clients need the version refusal response without parsing their claims.
Parameters
login
The wire-level Login body containing the raw connection request strings.
Returns
The server's player identity and client details.
authenticationType
authenticationType:
number
clientRandomId
clientRandomId:
number=clientData.ClientRandomId
device
device:
Device
displayName
displayName:
string
identity
identity:
string
identityPublicKey
identityPublicKey:
string|undefined
languageCode
languageCode:
string=clientData.LanguageCode
serverAddress
serverAddress:
string=clientData.ServerAddress
skin
skin:
Skin
verified
verified:
boolean=false
Whether the chain was checked against Xbox Live. Set by the login handler, never by a parse.
xuid
xuid:
string