Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: Fixes redirect to auth url, set_room can be undefined.
damenchof615b0133cc5
diff --git a/react/features/authentication/middleware.ts b/react/features/authentication/middleware.tsindex fd50b3d319..5ccc97f517 100644--- a/react/features/authentication/middleware.ts+++ b/react/features/authentication/middleware.ts@@ -5,6 +5,7 @@ import {CONFERENCE_LEFT,SET_ROOM} from '../base/conference/actionTypes';+import { isRoomValid } from '../base/conference/functions';import { CONNECTION_ESTABLISHED, CONNECTION_FAILED } from '../base/connection/actionTypes';import { hangup } from '../base/connection/actions';import { hideDialog } from '../base/dialog/actions';@@ -197,15 +198,15 @@ MiddlewareRegistry.register(store => next => action => {const { dispatch, getState } = store;const state = getState();const config = state['features/base/config'];+ const { room } = action;- if (isTokenAuthEnabled(config) && config.tokenAuthUrlAutoRedirect- && state['features/authentication'].tokenAuthUrlSuccessful) {+ if (isRoomValid(room) && isTokenAuthEnabled(config) && config.tokenAuthUrlAutoRedirect+ && state['features/authentication'].tokenAuthUrlSuccessful+ && !state['features/base/jwt'].jwt) {// if we have auto redirect enabled, and we have previously logged in successfully// let's redirect to the auth url to get the token and login againdispatch(setTokenAuthUrlSuccess(false));- const { room } = action;-window.location.href = getTokenAuthUrl(config)(room, false);}