Add JWT auth, token service & Neutrino endpoint
This commit is contained in:
@@ -28,6 +28,10 @@ public class Profile
|
||||
public PlatformType Platform { get; private set; }
|
||||
public string PlatformId { get; private set; }
|
||||
public List<string> DeviceIds { get; private set; } = [];
|
||||
|
||||
// EZ
|
||||
public bool IsBanned { get; private set; }
|
||||
public bool IsModerator { get; private set; }
|
||||
|
||||
public DateTimeOffset CreatedAt { get; private set; }
|
||||
|
||||
@@ -57,6 +61,8 @@ public class Profile
|
||||
DeviceIds.Add(deviceId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static string RequireValue(string value, string parameterName)
|
||||
=> !string.IsNullOrWhiteSpace(value) ? value : throw new DomainException($"{parameterName} is required.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user