steam-appticket
Version:
Decrypts and parses Steam app tickets
12 lines • 725 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import ByteBuffer from 'bytebuffer';
import { AppOwnershipTicket, AppTicket } from '../index';
/**
* Parse a Steam app or session ticket and return an object containing its details.
* @param {Buffer} ticket - The binary appticket
* @param {boolean} [allowInvalidSignature=false] - If true, won't return null if the ticket has no valid signature
* @returns {AppOwnershipTicket|AppTicket|null} - object if well-formed ticket (may not be valid), or null if not well-formed
*/
export declare function parseAppTicket(ticket: Buffer | ByteBuffer, allowInvalidSignature?: boolean): AppOwnershipTicket | AppTicket | null;
//# sourceMappingURL=parseAppTicket.d.ts.map