diff --git a/IsraelHiking.Web/OsmAccessTokenEventsHelper.cs b/IsraelHiking.Web/OsmAccessTokenEventsHelper.cs index 20f0d23f2..9d766628a 100644 --- a/IsraelHiking.Web/OsmAccessTokenEventsHelper.cs +++ b/IsraelHiking.Web/OsmAccessTokenEventsHelper.cs @@ -62,7 +62,7 @@ public async Task OnMessageReceived(MessageReceivedContext context) var userIdFromCache = await _appCache.GetOrAddAsync(token, async () => { - var osmGateway = _clientsFactory.CreateOAuth2Client(context.Token); + var osmGateway = _clientsFactory.CreateOAuth2Client(token); var user = await osmGateway.GetUserDetails(); var userId = user.Id.ToString(); _logger.LogInformation($"User {userId} had just logged in");