Skip to content

cookie expiration check reversed #14

@enki

Description

@enki
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions