React Native SDK taking 5 seconds for login

Hi Team,

Our react native SDK is taking 5 seconds to Login in the user in Production.

Could you please let me know what can be done to reduce the time taken for login?

Also, when i enter wrong credentials i am not getting any error if the user is locked_out

Below is the code i have used.

signIn({ username: “{username}”, password: “{password}” })
.then(token => {
// consume accessToken from token.access_token
.catch(error => {
// { code: “”, message: “”, detail: { message: “”, status: “” } }
// handle error