mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 04:32:32 +00:00
skip requesting cookie-session
This commit is contained in:
@@ -41,6 +41,7 @@ export function SignalRProvider({ children }: { children: React.ReactNode }) {
|
||||
const hubUrl = `${API_BASE_URL}/api/realtime`;
|
||||
const newConnection = new signalR.HubConnectionBuilder()
|
||||
.withUrl(hubUrl, {
|
||||
withCredentials: false,
|
||||
accessTokenFactory: async () => {
|
||||
const token = await getAccessToken();
|
||||
return token || '';
|
||||
|
||||
Reference in New Issue
Block a user