Unable to login with existing credentials

Hello,

I am having issue with login with existing user in wordpress while enable User Migration in Login by Auth0 Wordpress Plugin.

Every time I login, I am getting the following error messages:

Returned user contains an invalid user_id value. If your Database Connection has enabled the "Use my own database" option, please make sure to return this attribute as string without spaces.

Can someone advise what is going on?

Thanks.

Hi @lynnchin,

Thanks for reaching out to the Auth0 Community!

The error you shared is stating that the user_id being returned is an invalid value.

When checking your WordPress custom database, I suspect the issue coming from the user_id in your Get User script.

In this case, could you please make sure the value returned is a string? You could use the toString() method to accomplish this.
For example:

user_id: user._id.toString(),

Please let me know how this goes.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.