This commit is contained in:
2026-10-09 19:35:12 +03:30
parent 565d7fbaff
commit d2d2ac4607
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ namespace xIdentityModels.Extensions
// //
var result = var result =
!source.IsNullOrDefault() && !source.IsNullOrDefault() &&
!source.ApplicationId.IsValidIntId() && source.ApplicationId.IsValidIntId() &&
!source.KeyHash.IsNullOrEmpty(); !source.KeyHash.IsNullOrEmpty();
// //
+1 -2
View File
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace xIdentityModels.Models namespace xIdentityModels.Models
@@ -9,7 +8,7 @@ namespace xIdentityModels.Models
public class XCreateApiKeyRequest public class XCreateApiKeyRequest
{ {
public int? RateLimit {get; set;} = null; public int? RateLimit {get; set;} = null;
public TimeSpan? Expiration {get; set;} = null; public int? ExpirationMinutes {get; set;} = null;
public IEnumerable<string> Scopes {get; set;} = null; public IEnumerable<string> Scopes {get; set;} = null;
public IEnumerable<string> AllowedIPs {get; set;} = null; public IEnumerable<string> AllowedIPs {get; set;} = null;
} }