Using autoIT for authentication


I am using autoIT for authentication. It is working fine in chrome but it is failing on chrome headless.
I have implemented all the steps which are provided in docs []

Could you please advice what is the right solution on this issue?

Thank You!