stormpath / stormpath-sdk-react

User Management and Authentication for React
Apache License 2.0
149 stars 57 forks source link

Differentiate between a SocialLoginLink being used to Register v.s being used to simply Log-in #199

Open dylanfpaul opened 7 years ago

dylanfpaul commented 7 years ago

I realize that the SocialLoginLink component acts a way for users to 'register' as well as 'login' using a social provider. How do I differentiate between a user using the SocialLoginLink component successfully for the first time (aka signing up with our app) and the user using it to simply login. I want to be able to catch a successful 'social registration' and redirect them to interfaces that should only appear after a successful sign up, not a 'login' per se.

dylanfpaul commented 7 years ago

I guess what I want to know is if there is a callback for a successful Social Login, and if I can also differentiate if this Social Login was in fact a 'social register' of sorts (so socially logging in for the very first time).