Back

[SOLVED] Discord Oauth create new account when email change

  • 0
  • Users
  • Web
Bill.IHCha
5 Jul, 2023, 09:19

Is it possible to make Appwrite edit the user email instead of creating a whole new user when the user changed Discord email. Or maybe use user ID as identifier that will work too

TL;DR
The solution to the issue of creating a new account when changing the email address in Discord OAuth is to create an Appwrite function that handles the email address change. By letting the user update their email from a custom page, you can ensure that the new email is edited in Appwrite instead of creating a new user. Alternatively, using the user ID as an identifier can also work.
Binyamin
5 Jul, 2023, 13:51

Eventually any user in Appwrite - no matter what provider - is attached to the email address, is there must be one source of truth. Meaning the even if the user is logged in using Discord, Google or any other provider the only important information for Appwrite is the email.

So in your case you'll need to create some Appwrite function that will handle the email address change, and let the user update is email from a custom page.

Bill.IHCha
5 Jul, 2023, 23:48

alright thanks

Bill.IHCha
12 Jul, 2023, 01:57

[SOLVED] Discord Oauth create new account when email change

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more