We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d90ffd7 commit 1f891f3Copy full SHA for 1f891f3
src/Client/src/services/broadcast-service.js
@@ -1,7 +1,10 @@
1
import * as signalR from '@aspnet/signalr'
2
+import JwtService from '@/services/jwt-service'
3
4
const connection = new signalR.HubConnectionBuilder()
- .withUrl(process.env.VUE_APP_BASE_URL + 'broadcast')
5
- .build();
+ .withUrl(process.env.VUE_APP_BASE_URL + 'broadcast', {
6
+ accessTokenFactory: () => JwtService.getToken()
7
+ })
8
+ .build();
9
10
export default connection
0 commit comments