trailsjs / sails-auth

Passport-based User Authentication system for sails.js applications. Designed to work well with the sails-permissions module.
https://www.npmjs.org/package/sails-auth
MIT License
266 stars 141 forks source link

code issue #78

Open loulin opened 9 years ago

loulin commented 9 years ago

api/services/passport.js#L146

        // If the tokens have changed since the last session, update them
        if (query.hasOwnProperty('tokens') && query.tokens !== passport.tokens) {
          passport.tokens = query.tokens;
        }

query.tokens !== passport.tokens should always be true because tokens is object.