Include your server access token in server builds

There are two methods for including your server access token in server builds

  • Setting it as an environment variable
  • Setting it as a command line argument

Setting as a command line argument

When running your executable from the command line, add the following:

GameServerAccessToken="YOUR_SERVER_ACCESS_TOKEN"

An example of parsing the Game Server Access Token via command line args in Rider

An example of parsing the Game Server Access Token via command line args in Rider

Setting it as an environment variable

You can also set your game token as an environment variable called GameServerAccessToken. In this case, do not include quotation marks around the value you set this to.


What’s Next