Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Cookie Request

Login 0x05, server → client.

login · 0x05 · clientbound (server → client)

Asks the client for a stored cookie by key during login. The client must reply with CookieResponse carrying the payload, or an empty response if it has no such cookie. Used mainly by proxies and transfer flows.

Sent by the server, read by the client. Listen for it with client.on("CookieRequest", (data) => …) on the receiving side.

Fields

Field Type Notes
cookie String also key

Send it

await client.sendPacket("CookieRequest", {
  cookie: /* String */,
});

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: src/Core/Versions/776/Packets/login/clientbound/CookieRequest.ts

Was this page helpful?