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 optional

ts
user: { blocked?: boolean; dateOfBirth?: number; email?: string; emailVerified?: boolean; id: string; legacyUser?: boolean; migrated?: boolean; migratedAt?: number; migratedFrom?: string; passwordChangedAt?: number; properties?: object[]; registeredAt?: number; registerIp?: string; secured?: boolean; suspended?: boolean; username: string; verifiedByParent?: boolean }

only present if requestUser was true in the request payload

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