userId update in ChatHub

This commit is contained in:
Artemy
2025-07-06 16:02:45 +07:00
parent 6062113655
commit 857751f0ad
2 changed files with 164 additions and 18 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ public class ChatsHub : Hub
private Guid GetUserId(bool suppressException = false)
{
var userIdClaim = Context.User?.FindFirst("userID")?.Value;
var userIdClaim = Context.User?.FindFirst("userId")?.Value;
if (string.IsNullOrEmpty(userIdClaim) || !Guid.TryParse(userIdClaim, out var userId))
{
if (!suppressException)