public static string GenerateToken(
            string userId,
            string userName,
            string tenantId                = null,
            string tenantName              = null,
            UserType userType              = UserType.All,
            IdentityType identityType      = IdentityType.ManagerUser,
            SystemModule claimSystemModule = SystemModule.All)
        {
            var girvsIdentityClaim = new GirvsIdentityClaim()
            {
                UserId       = userId,
                UserName     = userName,
                TenantId     = tenantId,
                TenantName   = tenantName,
                IdentityType = identityType,
                SystemModule = claimSystemModule,
                OtherClaims  = new Dictionary <string, string>()
                {
                    { GirvsClaimManagerExtensions.GirvsIdentityUserTypeClaimTypes, userType.ToString() }
                }
            };

            return(GenerateToken(girvsIdentityClaim));
        }
        public static string GenerateToken(GirvsIdentityClaim girvsIdentityClaim)
        {
            var claimsIdentity = EngineContext.Current.ClaimManager.BuildClaimsIdentity(girvsIdentityClaim);

            return(GetJwtAccessToken(claimsIdentity));
        }