Skip to content

getAuthTicketForWebApi

getAuthTicketForWebApi(identity, timeoutSeconds?): Promise<Ticket>

Requests an auth session ticket for a Steam Web API service and waits for Steam to validate it. Needs init(). Rejects with Steam’s error on failure, or with “Steam didn’t validated the ticket in time.” when Steam does not answer within the timeout. The ticket is cancelled in both cases. Call cancel() on the returned Ticket once the remote side no longer needs it.

string

The identity string of the Web API service that will validate the ticket.

number | null

Seconds to wait for Steam before rejecting. Defaults to 10.

Promise<Ticket>

a Ticket holding the ticket bytes, readable with getBytes().

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.