original_string: public function authenticateWithToken(TokenInterface $token, Request $request, string $providerKey = null)
      {
          $this->migrateSession($request, $token, $providerKey);
          $this->tokenStorage->setToken($token);
  
          if (null !== $this->dispatcher) {
              $loginEvent = new InteractiveLoginEvent($request, $token);
              $this->dispatcher->dispatch($loginEvent, SecurityEvents::INTERACTIVE_LOGIN);
          }
      }
code: public function authenticateWithToken(TokenInterface $token, Request $request, string $providerKey = null)
      {
          $this->migrateSession($request, $token, $providerKey);
          $this->tokenStorage->setToken($token);
  
          if (null !== $this->dispatcher) {
              $loginEvent = new InteractiveLoginEvent($request, $token);
              $this->dispatcher->dispatch($loginEvent, SecurityEvents::INTERACTIVE_LOGIN);
          }
      }
code_tokens: public function authenticateWithToken ( TokenInterface $ token , Request $ request , string $ providerKey = null ) { $ this -> migrateSession ( $ request , $ token , $ providerKey ) ; $ this -> tokenStorage -> setToken ( $ token ) ; if ( null !== $ this -> dispatcher ) { $ loginEvent = new InteractiveLoginEvent ( $ request , $ token ) ; $ this -> dispatcher -> dispatch ( $ loginEvent , SecurityEvents :: INTERACTIVE_LOGIN ) ; } }
docstring: Authenticates the given token in the system.
  
  @param string $providerKey The name of the provider/firewall being used for authentication
docstring_tokens: Authenticates the given token in the system .