I didn’t see any solution on the thread, and the workaround proposed didn’t work.
So the problem is that the first login right after the account linking, THE USER DOES NOT EXIST is returned.
The second login works as expected.
This is the error log of the failed login:
“error”: {
“message”: “The user does not exist.”,
“oauthError”: “access_denied”,
“type”: “oauth-authorization”
}
Has anyone experienced this before? If so, how was it fixed?
Yes, I actually was able to solve this issue after receiving help from their support engineers. I don’t remember a lot of this as I don’t use Auth0 anymore, but I managed to retreive the logs from the support conversation.
This is the response they sent me that solved the issue:
Looking at your rules, it looks like you have another rule (Add first login to the user profile) that is called after the Link Users with Same Email Address rule that is also using “user_id”, can you please try and update the rule to check if the user_id that is being used is correct by updating it to the following:
Later I had a problem with the metadata of the user. After merging even if the user had already logged multiple times, its metadata showed that it was a first login.
I was able to solve this after long exchange of messages with support. If you need further help I can copy the whole conversation and post it here, but maybe the problem has already been fixed by them.