-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to sign up #885
Comments
I can not find any reference on the Auth0 plugin to the action |
Maybe I'm getting too far on this, but I implemented a function to respond properly when Auth0 call the site with the
Then I just respond with a proper JSON to do not break the Auth0 connection with my custom database. |
Hi @bruno-barros,
Where exactly are you seeing this error? Please walk me through what are you attempting to do when it occurs.
I don't follow, can you clarify what you mean? Are you referring to Auth0 Actions setup on the service side?
Do you mean the error is displayed inside the WordPress admin dashboard, or your Auth0 management log? What scripts are you referring to? v5 does not have a log panel in the WordPress admin dashboard.
"a0_action" is a v4 API, and wouldn't have any relevance to v5. It isn't supported by v5. Can you clarify what your environment is set up with right now, v4 or v5? |
Hi @evansims hummmm ok. I'm starting to see the problem here.
Maybe on v5 I don't need to use the "Custon database" configuration. As I started using Auth0 on v4.1, this was required at that time. Your responses:
This error I can see on Auth0 logs and on the Custom Database panel were there is a button to try the connection out.
All the errors appears on Auth0 Logs.
As I said, I was on v4 and migrated to v5. Now I see that I'm using a feature of v4 but with the code of v5. Because of that a needed to respond the request with "a0_action" argument. Now I'm afraid that a need to disable the "Custom Database" feature on the Auth0 panel. |
Ah, gotcha, thanks for clarifying — no, v5 does not require any special custom database configuration, and I would expect having such will almost certainly break things. Thanks for raising that, I'll add it to the documentation. |
Checklist
Description
After migrating to verision 5.0 I'm unable to register/create a new user. O Auth0 logs panel a see the error "Unexpected token < in JSON at position 0".
Could it be related to the "Database Action Scripts"?
On the Auth0 panel I get the same error trying out the scripts for login and getUser.
Reproduction
Additional context
No response
wp-auth0 version
5.0
WordPress version
6.4
PHP version
8.0
The text was updated successfully, but these errors were encountered: