Ok, I can see the provider now, it's apple
provider| providerUid | providerEmail apple β 000588.0000000000000000000.2355 β my-email@icloud.com
So is this tied to a different user?
The way it works now is if there's no session, and you create a new oauth session, you'll get logged in to the linked account based on that identities data.
If you have a session and this is a new oauth provider email/uid, it will create a new identity.
If you have a session but the oauth provider email/uid is already linked to another account, you'll get an error
I have cleaned all sessions yesterday, so my sessions are empty. I try to login using the same provider (apple) and email, but I get that error.
I think it should just login back to my account.
Same provider, same email, I didn't change any configuration for Apple login in the console.
It should, yes π§
If you need some data to investigate, I can send you in private message.
I've created a new simulator, everything is clean, and yet I can't login using that account. So it doesn't have any connection to the cookies or already connected account.
I wonder if apple is generating a new email, but using the same user id
It's possible. Because users have the option to use private email and the actually email, maybe I've created with real email and now I am login with the private one or vice versa (I don't have the option anymore). Is there a way to debug what e-mail is being sent?
Not really... Unless you test it on a local appwrite instance and dump the response from Apple
I will delete my account and try again to see in which account I'll be logged in. Tomorrow I'll give you feedback.
I don't know how it happened, but in my AppWrite database, I had both my Gmail and iCloud accounts (two separate accounts). After I deleted the iCloud account from the database and tried to log back into my iCloud account, it was logging into my Gmail account. So when I got the list of identities of that account, it was listed the gmail and icloud identities.
I solved it by deleting the identity using the id, now I can log back into my icloud account as a separate account. Somehow, I could attach my icloud account to my gmail account even with a previously created account already in the database.
Was the email on the identity the same as the email on the other account?
After deleting and recreating the identity, did the email of the new identity match the previous deleted identity?
The same email, identity apple. If you are asking for ids I didn't take notes
and yes, the new account now has exactly the same e-mail as the old account that I couldn't login
Somehow, I could attach my icloud account to my gmail account even with a previously created account already in the database.
So weird...that shouldn't happen. I'll have to troubleshoot this some more..
@fernandoxlr facing similar issue
did u find any solution
nvm i think its because of an existing identity for diff user and i am using another oauth provider here
Unfortunately I didn't find the real cause. I solved by deleting the user from database. In my case I was using the same oauth provider
Recommended threads
- Does anyone know default sender id and f...
Need it for otp verification in appwrite self hosted
- [BUG] I'm facing an issue while creating...
Hereβs whatβs happening: When I try to create a new Web app on my Appwrite console (backend.keplr.in), the browser console shows multiple errors: Uncaught (in...
- coolify docs dont help installing latest...
coolify has older version of appwrite, how do i install latest version of appwrite