I need to retrieve jwt token from SignalR request. I need this not for autheticate (this works fine), but for further tasks on token. Ideally will be if I can retrieve it on Hub level.
My Hub class
[Authorize(AuthenticationSchemes = "Bearer")]
public class MyHub : Hub
{
private readonly IMyService _myService;
public myHub(IMyService myService)
{
_myService = myService;
}
public async Task GetSomething()
{
await Clients.Caller.SendAsync("GetSomething", await _myService.GetSome();
}
}