Example #1
0
        public static string TokenUserId(this IUserIdentity identity)
        {
            if (identity == null)
            {
                throw new ArgumentNullException("identity");
            }

            return(identity.ActualClaims().Single(c => c.Type.Equals("user_id")).Value);
        }