Skip to content
Back

Oauth And Email/Password Session Link

  • 0
  • React Native
  • Auth
  • Cloud
Axistro
26 Jul, 2025, 05:45

I want to link both session of a user, so later say user logs in using their email password instead of oauth, I want to be able to get the oauth access token. The questions are

  1. Logging in via email password, will it still give me access token?
  2. Afaik, appwrite merges both Email/password and oauth account if they have same email. But what for different email? How will it be the workflow to merge? Is it possible?
  3. As creating a session is prohibited while a session is active Do i just call createoauth token and just leave it at that point? Not creating a oauth session?
TL;DR
1. Logging in via email/password won't give an access token, but you can generate one after authentication. 2. Appwrite merges accounts with the same email but not with different emails. 3. To merge sessions, call createOAuth token after logging in with email/password and leave it as is without creating an OAuth session.
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