node-facebook-client icon indicating copy to clipboard operation
node-facebook-client copied to clipboard

cookie expiration check reversed

Open enki opened this issue 13 years ago • 1 comments

    var now = new Date();
    var expires_time = parseInt(facebook_cookie['expires'], 10) * 1000;

    if (now.getTime() < expires_time)
    {
        /*
         * The token is expired.
         */
        cb();
        return ;
    }

makes no sense - the cookie is supposed to expire in the future (replace < with >) this breaks for me with run_example.js

enki avatar Dec 13 '11 03:12 enki

Hmm, this means that the expires time conversion must be broken, too. Because for me it worked even with this very wrong line of code. Will look into that.

DracoBlue avatar Dec 15 '11 18:12 DracoBlue