Request to `usernamepassword/login` takes over 7 seconds

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


This method generates a call to

Request URL:https://[company]
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?

Seeing as that specific sample is deprecated, I would suggest looking at the latest Quickstarts on how to implement login with the latest SDK: