Skip to content
Back

OAuth Provider Signing me in With Different Email

  • 0
  • Flutter
  • Accounts
Infinil
26 Oct, 2023, 14:17

getting me?

TL;DR
The user is experiencing an issue where the OAuth provider is signing them in with a different email. They have raised an issue on GitHub and are asking for help regarding the specific properties needed for user and identity details. The user is unable to retrieve the user from "account.get()" and is instead getting an error 409. They also mention the scenario where if a user logs in with a different identity without logging out first, it creates a new identity and links it to the previous user. The user is unsure if this is a bug or an issue on their end. They mention wanting to confirm if logging in with identity A successfully logs them in
Infinil
26 Oct, 2023, 14:33

should i open different a post for it

Infinil
26 Oct, 2023, 14:33

because this issue seems more problematic than the initial one

Drake
26 Oct, 2023, 16:18

i want to make sure the basics works first. if there are no sessions, and user A logs in with their identity A, are they logged in successfully as user A?

Infinil
26 Oct, 2023, 16:20

yes in normal case it works.

Infinil
26 Oct, 2023, 16:20

i can show a working example if u want

Drake
26 Oct, 2023, 16:22

no that's fine

Drake
26 Oct, 2023, 16:23

so then if a user deletes their app without logging out and then they log in with a different identity B, this will create identity B and link it to user A. this is becuase the browser still has the User A session

Infinil
26 Oct, 2023, 16:23

thats the expected behavior i believe but i just get error 409

Infinil
26 Oct, 2023, 16:23

and then user is redirected to login screen

Infinil
26 Oct, 2023, 16:24

because i am still unable to get user from account.get()

Infinil
26 Oct, 2023, 16:25

one thing i want to confirm .. according to this account.get() should atleast give User A right

Drake
26 Oct, 2023, 16:26

yes

Infinil
26 Oct, 2023, 16:26

but thats not happening

Infinil
26 Oct, 2023, 16:26

not sure if its an issue from my side or a bug

Drake
26 Oct, 2023, 16:27

can you share the various user and identity details?

Infinil
26 Oct, 2023, 16:28

sure can u mention the specific properties? i will print them on console

Infinil
26 Oct, 2023, 16:28

like is email & id fine

Drake
26 Oct, 2023, 16:29

for user, email and id. for identity, userId provider, providerUid and providerEmail. can you DM me this info?

Infinil
26 Oct, 2023, 16:31

sure gimme few mins

Infinil
26 Oct, 2023, 16:38

done

Infinil
27 Oct, 2023, 03:38
Infinil
27 Oct, 2023, 03:38

I hope the steps are easy to understand πŸ˜…

Infinil
30 Oct, 2023, 10:32

This issue will occur on clearing app data as well... and users can easily do that.

Infinil
30 Oct, 2023, 10:33

i believe it can result in a major drawback for big apps πŸ€”

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