public static function generateToken($secret, $object)
    {
        try
        {
            return (new TokenGenerator($secret))
                            ->setData($object)
                            ->create();
        } catch (TokenException $e)
        {
            $e->getMessage();
            return false;
        }
    }