skip to Main Content

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.

2

Answers


  1. Steam provides an OpenID web API which you can use to authenticate registered users in your game. The users would click the link to login by Steam and then Steam would generate a session ticket which can be stored on your server and used to validate with Steam’s APIs.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search