five-on-it / apps/client/electron/bridge / SteamBridge
Interface: SteamBridge
Defined in: apps/client/electron/bridge.ts:63
Steam in the desktop app.
Methods
openId()
openId(
base):Promise<SteamOpenIdResult>
Defined in: apps/client/electron/bridge.ts:75
Signs in on Steam's own page (OpenID) in a window of the app's, at the platform whose API is base (http or https): the one-time code it came back with, an error, or that the player closed the window. One window at a time: asked again, the open one comes forward.
Parameters
base
string
Returns
Promise<SteamOpenIdResult>
ticket()
ticket():
Promise<string|undefined>
Defined in: apps/client/electron/bridge.ts:69
A fresh ticket for the platform's API (GetAuthTicketForWebApi("five-on-it-api"), in hex) for POST /auth/steam; none when Steam is not running, or the app has no Steam app id (FOI_STEAM_APP_ID).
Returns
Promise<string | undefined>