Pass JWT token to close page

This commit is contained in:
Matthias Wuttke 2020-04-29 08:39:14 +02:00 committed by Saúl Ibarra Corretgé
parent 027cc1be96
commit b0650b8448
1 changed files with 4 additions and 3 deletions
react/features/app

View File

@ -284,11 +284,12 @@ export function maybeRedirectToWelcomePage(options: Object = {}) {
// if close page is enabled redirect to it, without further action
if (enableClosePage) {
const { isGuest } = getState()['features/base/jwt'];
const { isGuest, jwt } = getState()['features/base/jwt'];
// save whether current user is guest or not, before navigating
// to close page
// save whether current user is guest or not, and pass auth token,
// before navigating to close page
window.sessionStorage.setItem('guest', isGuest);
window.sessionStorage.setItem('jwt', jwt);
let path = 'close.html';