-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
I am using the yeoman angular fullstack with sequelize and have configured mysql as my db.
I get an error when i try to login through facebook which is mysql syntax error when the following is trying to get executed in /server/auth/facebook/passport.js
User.find({where:{'facebook.id': profile.id}}).then(user => {
if (user) {
return done(null, user);
}
during this authentication mysql gives the following error:
Executing (default): SELECT _id, name, email, role, password, provider, salt, facebook, twitter, google, github, createdAt, updatedAt FROM users AS User WHERE (User.facebook#>>'{id}') = '1239871587612' LIMIT 1;
SequelizeDatabaseError: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
I guess the error is at the syntax used at { 'facebook.id': profile.id}.
my mysql version is : 5.7.11