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
265 stars 141 forks source link

Fixed undefined appURL, and undefined query.provider #155

Closed Garland220 closed 7 years ago

Garland220 commented 7 years ago

This is a small fix, for an issue I had.

Adds an additional check to see if appUrl is undefined

Changed the order of a few things to make sure query.provider is not undefined -- because if it's undefined, but var provider is defined, it will never find the correct row