|
|
|
@ -1220,11 +1220,6 @@ namespace OpenIddict.EntityFrameworkCore |
|
|
|
throw new ArgumentNullException(nameof(token)); |
|
|
|
} |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(status)) |
|
|
|
{ |
|
|
|
throw new ArgumentException("The status cannot be null or empty.", nameof(status)); |
|
|
|
} |
|
|
|
|
|
|
|
token.Status = status; |
|
|
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
@ -1246,11 +1241,6 @@ namespace OpenIddict.EntityFrameworkCore |
|
|
|
throw new ArgumentNullException(nameof(token)); |
|
|
|
} |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(subject)) |
|
|
|
{ |
|
|
|
throw new ArgumentException("The subject cannot be null or empty.", nameof(subject)); |
|
|
|
} |
|
|
|
|
|
|
|
token.Subject = subject; |
|
|
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
@ -1272,11 +1262,6 @@ namespace OpenIddict.EntityFrameworkCore |
|
|
|
throw new ArgumentNullException(nameof(token)); |
|
|
|
} |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(type)) |
|
|
|
{ |
|
|
|
throw new ArgumentException("The token type cannot be null or empty.", nameof(type)); |
|
|
|
} |
|
|
|
|
|
|
|
token.Type = type; |
|
|
|
|
|
|
|
return Task.CompletedTask; |
|
|
|
|