{"id":265189,"date":"2024-11-23T08:22:08","date_gmt":"2024-11-23T08:22:08","guid":{"rendered":"https:\/\/michigandigitalnews.com\/index.php\/2024\/11\/23\/x-improved-login-success-rate-by-2x-after-adopting-passkeys\/"},"modified":"2025-06-25T17:10:22","modified_gmt":"2025-06-25T17:10:22","slug":"x-improved-login-success-rate-by-2x-after-adopting-passkeys","status":"publish","type":"post","link":"https:\/\/michigandigitalnews.com\/index.php\/2024\/11\/23\/x-improved-login-success-rate-by-2x-after-adopting-passkeys\/","title":{"rendered":"X improved login success rate by 2x after adopting passkeys"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div>\n<meta name=\"twitter:image\" content=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiJBDCUgyNU3PZGJjKyeLncL_zp7FIivM5V5Y1sVvf5ftjwbnughwJszK4JvMgcNu_oIukprwUBSwMoEQlGz9Cq4CUNV1iy2OsHwnjLaLVoQ5U5juzQ4u-D9gDFJMwtlSGzEAuv7XdrQMPXzsAObarEhYOWXTicQFQdhQDx4lX3brOWMMCIn4vGOh89CgQ\/s1600\/image1.png\"\/><br \/>\n<img decoding=\"async\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiJBDCUgyNU3PZGJjKyeLncL_zp7FIivM5V5Y1sVvf5ftjwbnughwJszK4JvMgcNu_oIukprwUBSwMoEQlGz9Cq4CUNV1iy2OsHwnjLaLVoQ5U5juzQ4u-D9gDFJMwtlSGzEAuv7XdrQMPXzsAObarEhYOWXTicQFQdhQDx4lX3brOWMMCIn4vGOh89CgQ\/s1600\/image1.png\" style=\"display:none\"\/><\/p>\n<p><em>Posted by Niharika Arora \u2013 Developer Relations Engineer<\/em><\/p>\n<p><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiJBDCUgyNU3PZGJjKyeLncL_zp7FIivM5V5Y1sVvf5ftjwbnughwJszK4JvMgcNu_oIukprwUBSwMoEQlGz9Cq4CUNV1iy2OsHwnjLaLVoQ5U5juzQ4u-D9gDFJMwtlSGzEAuv7XdrQMPXzsAObarEhYOWXTicQFQdhQDx4lX3brOWMMCIn4vGOh89CgQ\/s1600\/image1.png\" imageanchor=\"1\"><img decoding=\"async\" border=\"0\" data-original-height=\"800\" data-original-width=\"100%\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiJBDCUgyNU3PZGJjKyeLncL_zp7FIivM5V5Y1sVvf5ftjwbnughwJszK4JvMgcNu_oIukprwUBSwMoEQlGz9Cq4CUNV1iy2OsHwnjLaLVoQ5U5juzQ4u-D9gDFJMwtlSGzEAuv7XdrQMPXzsAObarEhYOWXTicQFQdhQDx4lX3brOWMMCIn4vGOh89CgQ\/s1600\/image1.png\" style=\"100%\"\/><\/a><\/p>\n<p>From breaking news and entertainment to sports and politics, <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.twitter.android&amp;hl=en_US\" target=\"_blank\" rel=\"noopener\">X<\/a> is a social media app that aims to help nearly 500 million users worldwide get the full story with all the live commentary. Recently, X developers revamped the Android app\u2019s login process so users never miss out on the conversations they\u2019re interested in. Using the <a href=\"https:\/\/developer.android.com\/identity\/sign-in\/credential-manager\" target=\"_blank\" rel=\"noopener\">Credential Manager API<\/a>, the team implemented new <a href=\"https:\/\/developer.android.com\/design\/ui\/mobile\/guides\/patterns\/passkeys\" target=\"_blank\" rel=\"noopener\">passkey<\/a> authentication for quicker, easier, and safer access to the app.<\/p>\n<h3>Simplifying login with passkeys<\/h3>\n<p>Today, traditional password-based authentication systems are <a href=\"https:\/\/www.youtube.com\/watch?v=2xdV-xut7EQ\" target=\"_blank\" rel=\"noopener\">less secure and more prone to cyber attacks<\/a>. Many users often choose easy-to-guess passwords, which bad actors can easily crack using brute force attacks. They also reuse the same passwords across multiple accounts, meaning if one password is hacked, all accounts are compromised.<\/p>\n<p>Passkeys address the growing concern of account security from weak passwords and phishing attacks by eliminating the need for passwords entirely. The feature provides a safer, more seamless sign-in experience, freeing users from having to remember their usernames or passwords.<\/p>\n<p>\u201cPasskeys are a simpler, more secure way to log in, replacing passwords with pins or biometric data like fingerprints or facial recognition,\u201d said Kylie McRoberts, head of safety at X. \u201cWe explored using passkeys to make signing in easier and safer for users, helping protect their accounts without the hassle of remembering passwords.\u201d<\/p>\n<p>Since implementing passkeys, the X team has seen a substantial reduction in login times and metrics showing improved login flow. With passkeys, <b>the app\u2019s successful login rate has doubled<\/b> compared to when it only relied on passwords. The team has also seen a decline in password reset requests from users who have enabled passkeys.<\/p>\n<p>According to X developers, adopting passkeys even came with benefits beyond enhanced security and a simplified login experience, like lower costs and improved UX.<\/p>\n<p>\u201cPasskeys allowed us to cut down on expenses related to SMS-based two-factor authentication because they offer strong, inherent authentication,\u201d said Kylie. \u201cAnd with the ease of login, users are more likely to engage with our platform since there\u2019s less friction to remember or reset passwords.\u201d<\/p>\n<p>Passkeys rely on public-key cryptography to authenticate users and provide them with private keys. That means websites and apps can see and store the public key, but never the private key, which is encrypted and stored by the user\u2019s credential provider. As keys are unique and tied to the website or app, they cannot be phished, further enhancing their security.<\/p>\n<p><image><\/p>\n<div style=\"text-align: center;\"><img decoding=\"async\" alt=\"We achieved an 80% code reduction in the authentication module, a 90% resolution of legacy edge case bugs, and an 85% decrease in GIS, One Tap, and Smart Lock code using passkeys.\u201d \u2014 Saurabh Arora, Staff Engineer at X.\" border=\"0\" id=\"imgCaption\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjdOQTlO7rbhdnDJJUNpjwWvbCTFpsaRuBPgqVk4hZ4wiyNS5S7uAb8vZN27OhYfuco2MOed59sX3XDebYku_A3T4RaNuo-vwaBaCC_uayVjccYqwyNaUANRIw8b8m5ax4RWNLAvxFhqkJNVC4BWbU0NdHf_4s55gbggc54eTMZomYM943MP9qe4RKjKgc\/s1600\/image5.png\" width=\"100%\"\/><\/div>\n<p><\/image><\/p>\n<h3>Seamless integration using the Credential Manager API<\/h3>\n<p>To integrate passkeys, X developers used Android\u2019s Credential Manager API, which made the process \u201cextremely smooth,\u201d according to Kylie. The API unifies Smart Lock, One Tap, and Google Sign-In into a single, streamlined workflow. This also allowed developers to remove hundreds of lines of code, boosting implementation and reducing maintenance overhead.<\/p>\n<p>In the end, the migration to Credential Manager took X developers only two weeks to complete, followed by an additional two weeks to fully support passkeys. This was a \u201cvery fast migration\u201d and the team \u201cdidn\u2019t expect it to be that simple and straightforward,\u201d said Saurabh Arora, a staff engineer at X. Thanks to Credential Manager\u2019s simple, coroutine-powered API, the complexities of handling multiple authentication options were essentially removed, reducing code, the likelihood of bugs, and overall developer efforts.<\/p>\n<p>X developers saw a significant improvement in developer velocity by integrating the Credential Manager API. With their shift to passkey adoption through Credential Manager API, they achieved an:<\/p>\n<ul>\n<ul>\n<li><b>80% code reduction in the authentication module<\/b><\/li>\n<\/ul>\n<ul>\n<li><b>90% resolution of legacy edge case bugs<\/b><\/li>\n<\/ul>\n<ul>\n<li><b>85% decrease in GIS, One Tap, and Smart Lock handling code<\/b><\/li>\n<\/ul>\n<\/ul>\n<p>Using the Credential Manager API&#8217;s top-level methods, like <span style=\"color:#0d904f ; font-family:Courier\">createCredential<\/span> and <span style=\"color:#0d904f ; font-family:Courier\">getCredential<\/span>, simplified integration by removing custom logic complexities surrounding individual protocols. This uniform approach also meant X developers could use a single, consistent interface to handle various authentication types, such as passkeys, passwords, and federated sign-ins like Sign in with Google.<\/p>\n<p>\u201cWith Credential Manager\u2019s simple API methods, we could retrieve passkeys, passwords, and federated tokens with a single call, cutting down on branching logic and making response handling cleaner,\u201d said Saurabh. \u201cUsing different API methods, like <span style=\"color:#0d904f ; font-family:Courier\">createCredential()<\/span> and <span style=\"color:#0d904f ; font-family:Courier\">getCredential()<\/span>, also simplified credential storage, letting us handle passwords and passkeys in one place.\u201d<\/p>\n<p>X developers didn\u2019t face many challenges when adopting Sign in With Google using the Credential Manager API. Replacing X\u2019s previous Google Sign In, One Tap, and Smart Lock code with a simpler Credential Manager implementation meant developers no longer had to handle connection or disconnection statuses and activity results, reducing the margin of error.<\/p>\n<p><image><\/p>\n<div style=\"text-align: center;\"><img decoding=\"async\" alt=\"A UI example of passkeys on X\" border=\"0\" id=\"imgCaption\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhM0eHIHOGdMmQIr50uNo7ACAavH1YEvJkhn7RTdb4JWfBYyfxir45Ws0pBVk0s4oVDDX2KvTDFgB6aJkE2yZdqtycecb61RAP4MePkm0QJVEGjRXtp99o1CPl5UJHquTh9ENoPlEZjeiOu2LITV67L-HgvqkKPbyiOk3I-RbkDzueU6FIgHBn7NY9IVJc\/s1600\/image6.png\" width=\"100%\"\/><\/div>\n<p><\/image><\/p>\n<h3>A future with passkeys<\/h3>\n<p>X&#8217;s integration of passkeys shows that achieving a more secure and user-friendly authentication experience can be achieved. By leveraging Credential Manager API, X developers simplified the integration process, reduced potential bugs, and improved both security and developer velocity\u2014all while sharpening the user experience.<\/p>\n<p>\u201cOur advice for developers considering passkey integration would be to take advantage of the Credential Manager API,\u201d said Saurabh. \u201cIt really simplifies the process and reduces code you need to write and maintain, making implementation better for developers.\u201d<\/p>\n<p>Looking ahead, X plans to further enhance the user experience by allowing sign-ups with passkeys alone and providing a dedicated passkey management screen.<\/p>\n<h3>Get started<\/h3>\n<p>Learn how to improve your app\u2019s login UX using <a href=\"https:\/\/developer.android.com\/design\/ui\/mobile\/guides\/patterns\/passkeys\" target=\"_blank\" rel=\"noopener\">passkeys<\/a> and the <a href=\"https:\/\/developer.android.com\/identity\/sign-in\/credential-manager\" target=\"_blank\" rel=\"noopener\">Credential Manager API<\/a>.<\/p>\n<\/div>\n<p>[ad_2]<br \/>\n<br \/><a href=\"http:\/\/android-developers.googleblog.com\/2024\/11\/x-improved-login-success-rate-after-adopting-passkeys.html\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Posted by Niharika Arora \u2013 Developer Relations Engineer From breaking news and entertainment to sports and politics, X is a social media app that<\/p>\n","protected":false},"author":1,"featured_media":265190,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[146],"tags":[],"_links":{"self":[{"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/posts\/265189"}],"collection":[{"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/comments?post=265189"}],"version-history":[{"count":0,"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/posts\/265189\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/media\/265190"}],"wp:attachment":[{"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/media?parent=265189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/categories?post=265189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michigandigitalnews.com\/index.php\/wp-json\/wp\/v2\/tags?post=265189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}