authInfo->tokenInfo; if($tokenInfo->hasImpersonatedUserId) { $impUserId = $tokenInfo->impersonatedUserId; $tokenBuilder = $tokenInfo->toBuilder(); $tokenBuilder->removeImpersonatedUserId(); $tokenInfo = $tokenBuilder->toInfo(); AuthTokenCookie::apply($msz->authCtx->createAuthTokenPacker()->pack($tokenInfo)); Tools::redirect($msz->urls->format('manage-user', ['user' => $impUserId])); return; } } Tools::redirect($msz->urls->format('index'));