Replies: 1 comment 4 replies
-
Hey sorry this is like a year later, In this scenario you are just adding a default check in the remix-auth function for each social provider.... If the user exists and didn't use this social oauth, throw specific error message and redirect to login. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I have followed docs from
remix-auth
andremix-auth-socials
to authenticate my users with Google and Facebook. Normally, if a user authenticates for the very first time a new account will be created in my CMS for that user. Following requests will simply return his existing account. My case: if an existing user tries to login with another social provider, my CMS returns an error because it has already a user with his e-mail and linked to other provider. What I want to achieve in such case is to redirect such user to the login page and show him error message from the CMS, so the he knows that he needs to use another provider.Beta Was this translation helpful? Give feedback.
All reactions