Google is working on WebOTP API. This will allow websites the ability to programmatically obtain the one-time password from a SMS message and automatically fill the form for users with just one tap without switching apps.
source https://timesofindia.indiatimes.com/gadgets-news/googles-new-feature-to-allow-transferring-sms-opts-from-your-phone-to-pc/articleshow/85170261.cms
source https://timesofindia.indiatimes.com/gadgets-news/googles-new-feature-to-allow-transferring-sms-opts-from-your-phone-to-pc/articleshow/85170261.cms