Access token expiry

How can I set the expiry of the access token issued by the Sphinx Server? I presume this needs to be done in OnConfigureToken, but how?

You should set it in your client configuration, using AccessTokenLifetime property: