javascriptnode.jsgame-developmentsteamsteam-web-api

Multiplayer JAVASCRiPT game with NODEJS backend - implementing STEAM auto login on game launch


I am developing a game thats basically a website(frontend html, js, css) with a nodejs backend. It works like charm, the game can be played in any browser.

I found a way to convert this website to an executable (.exe). It works the exact same way as if it was running inside a browser but now, its an executable that I can deploy to steam. So the game can be found on steam, can be downloaded there and played.

Right now, the login procedure is part of the website. I can enter a username and password and I am authenticated against my own backend.

Now comes my question: Is it possible to pass the steam login credentials to the game on startup? This way the player would not need to authenticate with outsideofsteam credentials and can play directly with steam user id. On the server side I could then connect the steam user id to the character of the game.

Any help/hints/ideas are very appreciated. Thank you in advance! :)

I didnt try anything yet because I did not find anything that comes close to my specific usecase.


Solution

  • If you plan on using Steam to distribute your game, you'll want to use the Steam SDK. It's a C library, but there's an (extremely limited) NodeJS binding called steamworks.js that should be enough to get you started with linking steam accounts either directly to your game or sharing them with your existing account system.