Skip to content
Back

Bypass Error When Creating Account With Existing OAuth Email

  • 1
  • Auth
  • Web
  • Cloud
KINGKabir👑
30 Apr, 2025, 19:21

Suppose user first uses email/pass for log in using xyz@gmail.com, few month later on decides to use google oauth2 with same xyz@gmail.com

(or in reverse order)

but appwrite will prevent this saying user already exist, is there any way to overcome this?

why needed: sometime user forgets password and quickly want to login using oauth2

TL;DR
Users want to sign up with OAuth using an email that's already in the system, but this currently results in an error. They are looking for a way to bypass this error as it's not the intended behavior. This is causing an issue for users who may forget their password and want to quickly log in using OAuth.
Kenny
30 Apr, 2025, 19:36
Kenny
30 Apr, 2025, 19:37

...the server will attempt to look for a user with the same email address as the email received from the OAuth2 provider and attach the new session to the existing user. If no matching user is found - the server will create a new user.

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