Add user identity system with channel pairing and web /link command
Introduce Luna.Identity project with user identity service, pairing code generation, and channel linking. Channels (Telegram, CLI) now verify link status before routing messages and prompt users to pair via the web interface. WebChannel handles /link <channel-type> <code> commands to complete the pairing flow. Fix inverted expiration check in IsPairingCodeExpired that caused codes to be treated as expired immediately after creation.
This commit is contained in:
@@ -141,7 +141,7 @@ public class ChatClientService(IHostApplicationLifetime lifetime) : IHostedServi
|
||||
|
||||
try
|
||||
{
|
||||
await connection.InvokeAsync("OnMessageReceived", message, cancellationToken);
|
||||
await connection.InvokeAsync("OnMessageReceivedAsync", message, cancellationToken);
|
||||
|
||||
await foreach (var update in responseChannel.Reader.ReadAllAsync(cancellationToken))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user