Rank 6: Server
I am trying to login with xyz@gmail.com via discord provider but i get the error code 409. I have checked auh and i don't see any user registered with that email.
Votes
0
Replies
20
Participants
Unknown
Messages
21
Rank 6: Server
I am trying to login with xyz@gmail.com via discord provider but i get the error code 409. I have checked auh and i don't see any user registered with that email.
Rank 6: Server
OAuth Provider Signing me in With Different Email already facing other issues here
Rank 6: Server
also if i try to login with xyz@gmail.com via google provider then it works
Rank 6: Server
even if its due to an identity being created for diff user why is this error shown with discord provider
Rank 6: Server
wait is this also an intended behavior ??
yes, the user will need to link the discord identity first
Rank 6: Server
but thats not possible right
Rank 6: Server
because xyz@gmail.com is linked to another user via google provider
Rank 6: Server
or u mean smth else
it is possible. it's possible to have multiple identities with the same email.
the user would need to log in first and then create an oauth2 session with discord. that will create a new discord identity linked to the user. They'll then have 2 identities: one for google and another for discord.
Rank 6: Server
so the user needs to have session for xyz@gmail.com via google provider
Rank 6: Server
and then create the discord oauth session?
Rank 6: Server
or if u mean no session should exist then i get user_email_already_exists error
they need to already have a session
Rank 6: Server
isnt this unintuitive for the user .. like if they log out from app then by default they will think that any oauth provider + account combo should work?
Rank 6: Server
or maybe giving devs an alternate option to have 1 identity max per user in auth?
it's a trade-off
Rank 6: Server
i understand.. should i make a feature request for the latter because then no extra identities will be linked to user right + devs will have more freedom?
you could...but i would suggest showing the user an error and maybe telling them to use the same provider before. In addition, you may want to build out a screen that allows users to connect accounts
Rank 6: Server
yes i can do that but then again there is OAuth Provider Signing me in With Different Emailin which browser session can go undetected and can lead to problems client sided like i wont be able to display the screen
Rank 6: Server
also at starting as a dev u might not wanna waste time on building a complex oauth.. tho yea it can be beneficial to implement it later on