[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/prismarine](https://jsprismarine.dev/api/@jsprismarine/prismarine/index.md) / editions/bedrock/LoginIdentity

# editions/bedrock/LoginIdentity

## Functions

### identityFromXUID()

> **identityFromXUID**(`xuid`): `string`

Defined in: [packages/prismarine/src/editions/bedrock/LoginIdentity.ts:79](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/editions/bedrock/LoginIdentity.ts#L79)

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:98](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/editions/bedrock/LoginIdentity.ts#L98)

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

[`Login`](https://jsprismarine.dev/api/@jsprismarine/protocol/index.md#login-1)

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`](https://jsprismarine.dev/api/@jsprismarine/prismarine/utils/Device/classes/Device.md)

##### displayName

> **displayName**: `string`

##### identity

> **identity**: `string`

##### identityPublicKey

> **identityPublicKey**: `string` \| `undefined`

##### languageCode

> **languageCode**: `string` = `clientData.LanguageCode`

##### serverAddress

> **serverAddress**: `string` = `clientData.ServerAddress`

##### skin

> **skin**: [`Skin`](https://jsprismarine.dev/api/@jsprismarine/protocol/classes/Skin.md)

##### verified

> **verified**: `boolean` = `false`

Whether the chain was checked against Xbox Live. Set by the login handler, never by a parse.

##### xuid

> **xuid**: `string`
