How to manage the double authentication?

Can you more clear about what you want to do?

Only second auth API doesn’t exist. If you want to authorize in API and have TWA enabled you have to send security code (generated by HOTP) over special header.

Here is describe for header