Impersonating User

Hello,
I use Microsoft SAML to log in to my application. When I try to switch users, I get this error message:

$request->attributes->remove('_switch_user_username');

        if (null === $this->tokenStorage->getToken()) {
            throw new AuthenticationCredentialsNotFoundException('Could not find original Token object.');
        }

        if (self::EXIT_VALUE === $username) {

How can I fix this?
Thanks in advance!

You may clear the cache, close the browser, then open the browser, and please try again.

Hello,
Thanks for the feedback, the problem has been resolved.