protected function splitJwt($jwt)
    {
        if (!is_string($jwt)) {
            throw new \InvalidArgumentException('The JWT string must have two dots');
        }

        $data = explode('.', $jwt);

        if (count($data) != 3) {
            throw new \InvalidArgumentException('The JWT string must have two dots');
        }

        return $data;
    }
protected function splitJwt($jwt)
    {
        if (!is_string($jwt)) {
            throw new \InvalidArgumentException('The JWT string must have two dots');
        }

        $data = explode('.', $jwt);

        if (count($data) != 3) {
            throw new \InvalidArgumentException('The JWT string must have two dots');
        }

        return $data;
    }
protected function splitJwt ( $ jwt ) { if ( ! is_string ( $ jwt ) ) { throw new \ InvalidArgumentException ( 'The JWT string must have two dots' ) ; } $ data = explode ( '.' , $ jwt ) ; if ( count ( $ data ) != 3 ) { throw new \ InvalidArgumentException ( 'The JWT string must have two dots' ) ; } return $ data ; }
Splits the JWT string into an array

@param string $jwt

@return array

@throws \InvalidArgumentException When JWT is not a string or is invalid
Splits the JWT string into an array