public function decodeToken($token, $secret, $algorithm = 'HS256')
    {
        $decoded = JWT::decode($token, $secret, [$algorithm]);

        return $this->convertObjectToArray($decoded);
    }
public function decodeToken($token, $secret, $algorithm = 'HS256')
    {
        $decoded = JWT::decode($token, $secret, [$algorithm]);

        return $this->convertObjectToArray($decoded);
    }
public function decodeToken ( $ token , $ secret , $ algorithm = 'HS256' ) { $ decoded = JWT :: decode ( $ token , $ secret , [ $ algorithm ] ) ; return $ this -> convertObjectToArray ( $ decoded ) ; }
Decode the provided token into an array

@param string $token
@param string $secret
@param string $algorithm

@return array
Decode the provided token into an array