Example #1
0
        private static void SetToJwtPayload(object source, SystemJWT.JwtPayload target)
        {
            var headerJObj = JObject.FromObject(source);

            foreach (var key in headerJObj.Properties().Select(x => x.Name).OrderByDescending(x => x.Length).ThenBy(x => x))
            {
                target[key] = headerJObj[key];
            }
        }