Skip to content

Interface YggrasilAuthentication

The auth response format.

Please refer https://wiki.vg/Authentication

🏷️ Properties

accessToken

ts
accessToken: string

hexadecimal or JSON-Web-Token (unconfirmed) [The normal accessToken can be found in the payload of the JWT (second by '.' separated part as Base64 encoded JSON object), in key "yggt"]

Defined in: packages/user/yggdrasil.ts:13

availableProfiles

ts
availableProfiles: GameProfile[]

only present if the agent field was received

Defined in: packages/user/yggdrasil.ts:21

clientToken

ts
clientToken: string

identical to the one received

Defined in: packages/user/yggdrasil.ts:17

selectedProfile

ts
selectedProfile: GameProfile

only present if the agent field was received

Defined in: packages/user/yggdrasil.ts:25

user

ts
user: Object

only present if requestUser was true in the request payload

Defined in: packages/user/yggdrasil.ts:29

Released under the MIT License.