You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to override what happen after a user has registered. I don't want people to be logged in automatically! If I understand well, I can override registerUser but it won't prevent the user to be logged in. addToSession() is called in any case :(
How can I do that?
Thanks
The text was updated successfully, but these errors were encountered:
I guess you can also override addToSession() method. I don't know which auth you are using, but here is how you can do it for facebook auth.
UserSchema.plugin(mongooseAuth,{everymodule: {// everyauth configs},facebook: {everyauth: {// facebook oauth configs,findOrCreateUser: function(sess,accessTok,accessTokExtra,fbUser){// find or createreturnpromise;},addToSession: function(session,auth){// do anything with the sessions}}}});
Hi,
I would like to override what happen after a user has registered. I don't want people to be logged in automatically! If I understand well, I can override
registerUser
but it won't prevent the user to be logged in. addToSession() is called in any case :(How can I do that?
Thanks
The text was updated successfully, but these errors were encountered: