Example #1
0
        public async Task GetGameSessionSettings(RequestContext <IScenePeerClient> ctx)
        {
            var user = await _sessions.GetUser(ctx.RemotePeer);

            var config = _service.GetGameSessionConfig();

            if (string.IsNullOrEmpty(config.UserIds.FirstOrDefault(id => id == user?.Id)))
            {
                throw new ClientException($"unauthorized");
            }
        }