Back

Email not getting verified when user logging in via OAuth

  • 0
  • Users
  • Accounts
  • General
Vedsaga
21 Nov, 2023, 16:43

Case 1 if account was created using the email and password, in that case email is marked not verifed ( this is fine).

Case 2 if login via OAuth services, and if there was no account earlier with the same email then in that case email is marked verified ( this is fine).

Case 3 Now, when user login again using any OAuth service ( google, facebook, apple), and if email address is same in OAuth provider as well, then in that case email should be marked as verified ( this was expected behaviour).

Wonder, why in the case 3 email is not getting marked as verifed when user logging in via OAuth and if account already exist with given email address?

TL;DR
The user is wondering why in case 3, the email is not getting marked as verified when logging in via OAuth, despite there already being an account with the same email address. The user suggests looking at a GitHub issue for a potential solution.
ideclon
21 Nov, 2023, 17:06

I’m going to guess it has something to do with separate Identities?

Vedsaga
22 Nov, 2023, 04:05

logging via OAuth doesn't tend to create new identity...

Drake
22 Nov, 2023, 04:53

Identities are something new in 1.4. we haven't documented them yet πŸ˜…

Vedsaga
22 Nov, 2023, 04:55

so just doubt would it create new Identity, but what if email already exist πŸ€”

Drake
22 Nov, 2023, 04:57
Vedsaga
22 Nov, 2023, 04:58

yap, seems this is it

Vedsaga
22 Nov, 2023, 04:59

just wondering, that we will go with case 3 no? that describe above? Would be prevent the OAuth login ( because most of custom server implementation does prevent user from Logging if accund was created via email password)

Case 3 Now, when user login again using any OAuth service ( google, facebook, apple), and if email address is same in OAuth provider as well, then in that case email should be marked as verified ( this was expected behaviour).

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