Hytale "Server session token not available": fix

Your Hytale server boots but nobody can join and the console has no session token. Why it happens, the /auth commands that fix it, and how to check.

Omne Team6 min read

Quick answer The server has no session token because it has never been authorised with a Hytale account, or it was authorised once and the login was not saved. Open the server console, run /auth login device, approve the code in a browser, then run /auth status to confirm [1][2]. Check /auth persistence so the login survives the next restart [2][3].

What the error looks like

This is the line host support guides quote from the console [3][4]:

[HandshakeHandler] Server session token not available - cannot request auth grant
Server authentication unavailable - please try again later

The server itself starts, but it immediately rejects player connections [3][4]. That is what makes this error confusing: nothing looks crashed, yet nobody can join. One of the guides also lists a sibling line [3]:

[HytaleServer] No server tokens configured. Use /auth login to authenticate.

Same problem. Neither guide is Hytale’s own, so treat the exact wording as “what hosts have seen” and expect it to change between server builds. I could not find the string in Hytale’s published manual, only the mechanism behind it.

Why the server has no token

Hytale’s manual says dedicated servers must authenticate “to enable communication with our service APIs and to counter abuse” [1]. The log line is tagged HandshakeHandler, and the host guides say that without a session token the server cannot request an authentication grant and refuses the connection [3][4].

The session token comes from a login you do once. You run a command, the server prints a short code and a link, you sign in with a Hytale account in your own browser, and the server gets OAuth tokens that it turns into a game session [2]. No login, no token.

The two situations that produce the error are the same ones both host guides give [3][4]:

  1. The server has never been authenticated.
  2. It was authenticated in a past run, but the credentials were only held in memory and were gone after the restart.

If your server was working yesterday and is broken today, suspect the second one first.

The fix, start to finish

You need console access to the server and a Hytale account you are happy to tie the server to. On a panel that is the Console page. Do not hand this account’s login or codes to anyone, including in a support ticket.

1. Start the server and let it finish booting. The error may already be in the log. That is fine [3].

2. Run the device login in the console.

/auth login device

Hytale documents this as the recommended command for headless servers [2]. The alternative, /auth login browser, needs a desktop environment on the same machine, so skip it on any hosted server [2].

3. Approve it in a browser. Hytale’s manual shows output of this shape [1]:

DEVICE AUTHORIZATION
Visit: https://accounts.hytale.com/device
Enter code: ABCD-1234
Waiting for authorization (expires in 900 seconds)...

That is the manual’s example, not real output from a server I ran. The link a host console prints can differ (the LOW.MS guide shows an oauth.accounts.hytale.com/oauth2/device/verify address [3]). Use whatever your console prints. The code is good for 900 seconds [1], so have your browser ready before you run the command. If it times out, run the command again.

If your account has more than one game profile, /auth select <number> picks one [2].

4. Look for success.

Authentication successful! Mode: OAUTH_DEVICE

Both Hytale and the host guides show this line [1][3][4]. The host guides also show Successfully created game session after it [3][4].

5. Make it survive a restart.

/auth persistence

With no argument this shows the current credential storage method. /auth persistence <type> changes it, and the type is Memory or Encrypted [2]. The host guides tell you to set Encrypted, and they say the console then confirms with a line about loading credentials from auth.enc [3][4]:

/auth persistence Encrypted

Hytale’s manual shows auth.enc and auth.key sitting next to HytaleServer.jar in the Server/ folder after a bootstrap install [1]. I did not find Hytale stating which storage type is the default. The hosts’ reports suggest it is not the saved one, which fits the “worked until the restart” symptom, but I have not proven that on a server of my own.

Confirm it worked

Run this:

/auth status

Host guides say an authenticated server reports an active session and a configured credential store [3][4]. I have not seen the exact output, so I will not quote it.

Then do the part people skip: restart the server and run /auth status again. A fix that only holds until the next restart is the usual way this error comes back. Finally, join from a real client. Hytale uses QUIC over UDP, default port 5520 [1], so UDP is the thing to check if authentication is fine and the connection still fails.

Other reasons you still see it

The login never completed. The code may have expired (900 seconds [1]), or the browser step was never approved. /auth cancel clears a stuck flow, and then you start /auth login device again [2]. Both host guides suggest confirming the browser login actually finished [3][4].

It was working, then you were offline a long time. Per Hytale’s provider guide, the refresh token lasts 30 days and is renewed every time the server refreshes. A server that stays online keeps itself authenticated. One that was off for more than 30 days needs a fresh /auth login [2].

Tokens you passed in at startup are bad. If you (or a script) supply --session-token and --identity-token, or the HYTALE_SERVER_SESSION_TOKEN and HYTALE_SERVER_IDENTITY_TOKEN environment variables, the server checks them at start. When validation fails you get this instead [2]:

Token validation failed. Server starting unauthenticated.
Use /auth login to authenticate.

Hytale lists expired tokens, a bad signature, or a missing scope as the usual causes [2]. Fix the tokens or drop them and log in by hand.

The server cannot reach Hytale. The LOW.MS guide lists network trouble, a Hytale service outage, or a problem with the account as causes of failed authentication. It says to confirm the server has outbound internet access [3]. If login fails the same way twice, wait and try again before you change anything.

The account hit its server limit. Hytale caps an account at 500 concurrent server sessions and returns 403 Forbidden past that [2]. If you run one server, this is not your problem.

What Omne’s docs say

Omne’s Hytale docs describe a login gate. The first time you press Start, the console prints a link and an authorization code, and the server stays on Starting until you approve it [5]. Omne’s troubleshooting page for authentication errors says Hytale’s manual describes running /auth login device in the console, and tells people to leave Auth Mode alone unless support says otherwise [6]. It does not quote the session token error itself, and this post did not test a login or a join with a real Hytale client.

The manual lists --auth-mode as authenticated or offline [1], and Omne’s docs say the option controls how players are checked [5]. Neither says exactly what offline mode gives up. When a server rejects everyone, flipping the mode is a guess and the login is the fix.

The platform is new and moving. Check the date on whatever you read, including this post.

Questions people ask

Does the Hytale server need a Hytale account to run?

To accept players in the default authenticated mode, yes. Hytale's manual says servers require authentication to talk to its service APIs and to counter abuse. You authorise the server once by running /auth login device in the console and approving it in a browser.

Do I have to log in again every time I restart?

Not if the credentials are saved. Hytale's provider guide describes /auth persistence with two storage types, Memory and Encrypted. Host guides report that unsaved credentials are lost on restart. Run /auth persistence to see what yours is using.

How long does a Hytale server stay authenticated?

Per Hytale's provider guide, a running server refreshes its own tokens and stays authenticated indefinitely. You only need to log in again if the server is offline for more than 30 days, or if you log it out.

Can I switch off authentication with offline mode?

The manual lists --auth-mode with the values authenticated and offline, but the pages I read do not say what offline mode changes for players. I would not use it to get around this error.

Sources

  1. Hytale Server Manual (Hypixel Studios support; archived copy of 2026-10-21, page updated 2026-10-12)
  2. Server Provider Authentication Guide (Hypixel Studios support; archived copy of 2026-10-14, page updated 2026-10-12)
  3. LOW.MS knowledge base: Hytale Error - Server session token not available (a host's guide, not Hytale's)
  4. Citadel Servers knowledge base: Hytale startup error, Server session token not available (a host's guide, not Hytale's)
  5. OmneHosting docs: Set up your Hytale server (first start and login)
  6. OmneHosting docs: Hytale server problems