Hello IZ2021,
Just to clarify, are you trying to use Touch ID, but you're being prompted to enter your passcode or Apple ID details, but those details aren't being accepted? We want to help any way we can.
If you're experiencing an issue using Touch ID, the information here can help: If Touch ID isn't working on your iPhone or iPad
If you need to reset your Apple ID password, this page outlines those steps: If you forgot your Apple ID password
In the meantime, if you think your Apple ID has been compromised, please check out the steps listed here to help regain control of your account: If you think your Apple ID has been compromised
Thanks!