yah, The api connect agent flow is really weird some time, like if you are using it with google singup, and the user is already in you app. it will always through an error. rather then just login the if user si already in our db.
i always build the auth my self, never use agent flow. as it give me more granular control , my mentor suggested me.