public function getTrueToken()
    {
        if (!isset($this->token)) {
            $token = $this->storage->getStoredToken();
            $this->token = is_string($token) ? $token : '';
        }

        if (strlen($this->token) !== self::TOKEN_LENGTH) {
            $this->regenerateToken();
        }

        return $this->token;
    }
public function getTrueToken()
    {
        if (!isset($this->token)) {
            $token = $this->storage->getStoredToken();
            $this->token = is_string($token) ? $token : '';
        }

        if (strlen($this->token) !== self::TOKEN_LENGTH) {
            $this->regenerateToken();
        }

        return $this->token;
    }
public function getTrueToken ( ) { if ( ! isset ( $ this -> token ) ) { $ token = $ this -> storage -> getStoredToken ( ) ; $ this -> token = is_string ( $ token ) ? $ token : '' ; } if ( strlen ( $ this -> token ) !== self :: TOKEN_LENGTH ) { $ this -> regenerateToken ( ) ; } return $ this -> token ; }
Returns the current actual CSRF token.

This returns the current actual 32 byte random string that is used to
validate the CSRF tokens submitted in requests.

@return string The current actual CSRF token
@throws Storage\TokenStorageException If the secret token cannot be loaded or stored
Returns the current actual CSRF token .