1
    2
    3
    4
    5
    6
    7
    8

content / test / data / fenced_frames / page_with_webotp.html [blame]

<input autocomplete="one-time-code">
<script>
  const ac = document.querySelector('input[autocomplete="one-time-code"]');
  navigator.credentials.get({
    otp: {transport:['sms']}
  })
  .then(content => ac.value = content.code);
</script>