Refresh Token

Hello,
I was wondering if there any way to refresh a token?
Currently, documentation says that we just should adjust a lifetime of the session.

Thanks,
Niiaz

Hi @KnyazNiyaz. Welcome :wave:

I was wondering if there any way to refresh a token?

You can refresh the token with a new authentication request for that user.

Currently, documentation says that we just should adjust a lifetime of the session.

Yes, this should be done as well because the session lifetime by default (60 seconds) is short because it’s intended to remind developers to set the value to what makes sense for the specific game. :slight_smile:

You can set the value via YML configuration or as a cmdflag to the server with --session.token_expiry_sec 604800 or whatever value you want. The other settings you can configure with the server are available here.