iOS 17 will make entering one-time codes received by mail a lot easier. Safari in iOS 17 will autofill verification codes that land in your mailbox.
The Messages app in iOS 16 can already autofill OTP codes in Safari and other apps. Apple is extending the same functionality to the Mail app.