Skip to content

_currentUserId get incorrect value #1210

@Mike6x

Description

@Mike6x

In UsersPage.razor UserDetailPage.razor, the functions get incorrect value for _currentUserId :

private async Task ResolveCurrentUser()
{
    try
    {
        var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
        _currentUserId = authState.User.FindFirst(ClaimTypes.NameIdentifier)?.Value;
    }
    catch
    {
        // Authentication state unavailable - user remains null (not logged in)
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions