<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: cricCode</title>
    <description>The latest articles on DEV Community by cricCode (@criccode).</description>
    <link>https://dev.to/criccode</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F940740%2F19deb0aa-fe34-440e-aad5-ea87d941bc67.png</url>
      <title>DEV Community: cricCode</title>
      <link>https://dev.to/criccode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/criccode"/>
    <language>en</language>
    <item>
      <title>Web OTP Api - One byte Explainer</title>
      <dc:creator>cricCode</dc:creator>
      <pubDate>Fri, 22 Mar 2024 10:47:32 +0000</pubDate>
      <link>https://dev.to/criccode/web-otp-api-one-byte-explainer-50pm</link>
      <guid>https://dev.to/criccode/web-otp-api-one-byte-explainer-50pm</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainer
&lt;/h2&gt;

&lt;p&gt;Accelerate and Simplify OTP sign in. Modify your SMS format to have &lt;code&gt;@{domain} #{otp}&lt;/code&gt; on the last line. In JS invoke &lt;code&gt;navigator.credentials.get().then(otp)&lt;/code&gt; with options for otp. On receiving sms, browser will prompt user for access and auto fill OTP. &lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Context
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/WebOTP_API#sms_message_format"&gt;SMS format&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Permissions are needed to run it in iframes -&amp;gt; &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/WebOTP_API#controlling_access_to_the_api"&gt;Permissions&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;References &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API"&gt;MDN&lt;/a&gt; &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API"&gt;Chrome Docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Working example from chrome docs -&amp;gt; &lt;a href="https://web-otp.glitch.me/"&gt;https://web-otp.glitch.me/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
