Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(authentication): keep the new token when the refresh fails

damencho897848cb791e
diff --git a/react/features/authentication/actions.web.ts b/react/features/authentication/actions.web.ts
index afc9c7d509..b706c08c3f 100644
--- a/react/features/authentication/actions.web.ts
+++ b/react/features/authentication/actions.web.ts
@@ -302,7 +302,12 @@ export function openTokenAuthUrl(tokenAuthServiceUrl: string): any {
membersOnly?.join();
})
.catch((err: any) => {
- dispatch(setJWT());
+ // Keep the token we have just obtained: the connection was given the new token
+ // and may still come up with it, while dropping it here would silently put the
+ // participant back to being a guest with no way to tell.
+ dispatch(showErrorNotification({
+ titleKey: 'dialog.loginFailed'
+ }));
logger.error(err);
});
} else {