@andrea.chiarelli The access token is used for the API that is hosting the hub connection for a chat client, which is not in a shared domain. Per .NET documentation, hub connections do not refresh access tokens and the logic for doing so must be provided.
I believe this is my issue here:
I confirmed in the Auth0 logs that the access token is being refreshed automatically.
So my question now is, how do I properly get to the access token? A hub connection requires a delegate that returns a string (access token). What can I tap into so that I can detect when a refresh occurs so I can keep the access token for my hub connection up to date? I tried adding an event handler to AuthenticationStateProvider.AuthenticationStateChanged
, but it appears that this is not firing for token refreshes.