Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Automatically refreshing auth tokens with a SignalR connection #11252


User avatar
0
tusksoft created
  • What is your product version? 10.2.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .NET Core
  • What is ABP Framework version? 6.2.0

We have a custom SignalR hub that is meant to handle long-running connections, usually for multiple days. This is a problem with auth tokens because when they expire, the connection dies. The vanilla SignalR NPM package from Microsoft exposes an accessTokenFactory callback in the HubConnectionBuilder options, but the ABP abstraction for SignalR does not provide access to these options. How can we manage refreshing auth tokens on the client side for long-running SignalR connections?


5 Answer(s)