Open
Description
I have the following:
const steamworks = require('steamworks.js')
const steamClient = steamworks.init(MY_APP_ID);
const steamId = steamClient.localplayer.getSteamId().steamId64;
//WORKS
ipcMain.handle('steam-id', () => {
return steamId;
})
//WORKS
ipcMain.handle('steam-name', () => {
return steamClient.localplayer.getName();
});
//DOES NOT WORK
ipcMain.handle('steam-session-ticket', async () => {
try {
const ticket = await steamClient.auth.getSessionTicketWithSteamId(steamId)
console.log(`Steam Ticket: ${ticket}`)
console.log(`Steam Ticket: ${ticket.getBytes()}`)
}catch (e) {
console.error(`Steam Not Loaded: ${e}`)
}
return await steamClient.auth.getSessionTicketWithSteamId(steamId);
})
The steam client is instantiated and ready to go, but the session ticket is failing with a GenericFailure
Metadata
Metadata
Assignees
Labels
No labels
Activity