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