Skip to content

Commit

Permalink
Sunset Oauth1 #1985 - Fix incorrect token usage
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Oct 6, 2024
1 parent ba3f865 commit 680fcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IsraelHiking.Web/OsmAccessTokenEventsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 680fcac

Please sign in to comment.