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 have a user model with some added properties that are required. When i do FB auth for example, everything goes as planned up to the point where the new user needs to be created. Validation fails of course since my fields are missing. How can i setup what happens after the FB login is completed?
In passport you do something like new FacebookStrategy(strategy, loginFacebook) where the 2nd parameter is your callback where you check if the user exists and add your custom logic.
How can i set my custom fields with default values before the create is fired?
The text was updated successfully, but these errors were encountered:
I have a user model with some added properties that are required. When i do FB auth for example, everything goes as planned up to the point where the new user needs to be created. Validation fails of course since my fields are missing. How can i setup what happens after the FB login is completed?
In passport you do something like new FacebookStrategy(strategy, loginFacebook) where the 2nd parameter is your callback where you check if the user exists and add your custom logic.
How can i set my custom fields with default values before the create is fired?
The text was updated successfully, but these errors were encountered: