/**
  * {@inheritdoc}
  */
 protected function getCodeFields($state = null)
 {
     $fields = parent::getCodeFields($state);
     if ($this->popup) {
         $fields['display'] = 'popup';
     }
     if ($this->reRequest) {
         $fields['auth_type'] = 'rerequest';
     }
     return $fields;
 }
 /**
  * Get the POST fields for the token request.
  *
  * @param  string  $code
  * @return array
  */
 protected function getTokenFields($code)
 {
     return Arr::add(parent::getTokenFields($code), 'grant_type', 'authorization_code');
 }
 /**
  * Get the POST fields for the token request.
  *
  * @param  string  $code
  *
  * @return array
  */
 protected function getTokenFields($code)
 {
     return parent::getTokenFields($code) + ['grant_type' => 'authorization_code'];
 }