Closed angelxmoreno closed 9 years ago
Sorry for the delay. Did you solved the issue in the meantime? If not, start debugging here https://github.com/stefanbuck/sails-social-auth-example/blob/master/config/express.js#L11. At this point you have access to the response from the Instagram API with all the provided information. Please verify that everything is stored in the database. The error occurs, because the serializeUser
method get tries to get a uid
from user
which is in your case undefined
. https://github.com/stefanbuck/sails-social-auth-example/blob/master/config/express.js#L41
i hope this helps you further
Could someone please provide instructions for adding new strategies?
passport-instagram
via npmconfig/express.js
InstagramStrategy = require('passport-instagram').Strategy
However when i try to go to
/auth/instagram
and I am redirected back to my app as i should but i get an error on the node saide saying:[TypeError: Cannot read property 'uid' of undefined]
. What am I missing?