Auth0 Home Blog Docs

Request to `usernamepassword/login` takes over 7 seconds

api-2
slow
loggin

#1

I have a react application with an authservice (I followed the examples github that already changed) that uses

auth0.redirect.loginWithCredentials()

This method generates a call to

Request URL:https://[company].auth0.com/usernamepassword/login
Request Method:POST

and this request always takes ~ 7 seconds.

I can’t find any docs for that endpoint or any discussion in this forum about the latency of that endpoint.

For what I could find, that method ( redirect.logginWithCredentials ) is gonna be deprecared. Does the endpoint too? Should I use client.login() instead? It won’t be as slow as this one?


#2

Seeing as that specific sample is deprecated, I would suggest looking at the latest Quickstarts on how to implement login with the latest SDK:
https://auth0.com/docs/quickstart/spa/react


#3