
Dear all,
I recently encountered an issue with Oauth.
For creating new users, it works fine. However, when logging in to an existing user (I had already previously signed up with Oauth), it gives me this error:
URL:https://cloud.appwrite.io/v1/account/sessions/oauth2/google/redirect?state=...
Body: {"message":"A user with the same id, email, or phone already exists in this project.","code":409,"type":"user_already_exists","version":"1.6.2"}
I believe this is an error that was not present in the past, as I was able to login with Oauth without issues.
I am calling the Oauth as follows:
const handleGoogleSignIn = (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
e.preventDefault()
account.createOAuth2Session(OAuthProvider.Google, redirectUri, redirectUri);
}
Recommended threads
- can't send emails
i explored the docs and it says Messaging.CreateEmail() but this function does not exist , i installed appwrite on next js env everything works fine except thi...
- session cookie not saving
it appears with my app hosted on Cloudflare worker pages, when i try to login it does not save the session cookie. however it saves in on localhost and no probl...
- approve deployment do not work
In https://github.com/cennso/cennso-website/pull/2 I see failing and when I go to https://cloud.appwrite.io/console/git/authorize-contributor?projectId=68f64b7b...
