Skip to content

cookie expiration check reversed #14

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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