Show generic error when fetching site-url/wp-json namespaces is empty during site credentials login #12813
Labels
feature: login
Related to any part of the log in or sign in flow, or authentication.
priority: low
Not many people are affected or there’s a workaround, etc.
Currently, if site namespaces are hidden due to some hosting provider configuration or security plugin, if the user attempt to log into the app they'll see the following error even for WooCommerce sites:
The error is misleading. The proposal is to update this piece of code from SiteWPAPIRestClient.kt:
and simply return an error if
response?.namespaces
is empty.The text was updated successfully, but these errors were encountered: