Currently, we will only return `sign_in_failed` for network error. should return more specific error code.