Back

[SOLVED] Account linking

  • 1
  • Accounts
squallsama
18 Mar, 2023, 02:27

Is it possible to merge accounts when login using different providers such as Google/Apple, but with the same email ?

TL;DR
The issue of account linking has been solved. The solution is to save the user's information when they log in to the app. The OAuth information can be found by iterating over the sessions. It is also possible to see which providers are used by the user to log in. If the email is the same, the same account will be used. Accounts can also be merged when logging in using different providers but with the same email.
Drake
18 Mar, 2023, 02:42

The same account is used if the email is the same

squallsama
18 Mar, 2023, 02:43

Nice ! Is it possible to see what providers are used by the user to login ?

Drake
18 Mar, 2023, 02:43

You'd have to iterate over the sessions. That's where the oauth info is

squallsama
18 Mar, 2023, 02:44

Gotcha. Looks like it's easier to save this info when the user logins into the app. Thanks !

Drake
18 Mar, 2023, 02:53

[SOLVED] Account linking

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