Habr•October 11, 2026•🇷🇺Translated from Russian

Passkeys in Production: How One Developer Replaced Passwords with Face ID in Three Days Using FastAPI and Next.js

Passkeys are no longer future technology. They already power authentication in major banking apps on phones, including Alpha-Bank, Tinkoff, and Sber. GitHub, Apple, and Google have also adopted them. Yet many web services still require users to create passwords with uppercase letters, numbers, and special characters, followed by monthly reset prompts.

Yaroslav Morozov, who builds Continental IT consulting and an internal product, decided to skip password friction when implementing authorization. The team chose Passkeys and completed the rollout in three days. This article delivers complete production code from database migration to the Face ID login button, using FastAPI on the backend and Next.js on the frontend.

Why Passkeys Matter

Passkeys offer superior security and convenience. Passwords can be phished on fake sites, while Passkeys bind cryptographic keys to the correct domain. Database leaks expose bcrypt hashes that attackers can crack, but private keys never leave the device. Users no longer need to invent, remember, or reset passwords; a fingerprint or facial scan suffices. Unlike reused passwords across sites, each Passkey pair is unique per domain.

According to the FIDO Alliance, more than 15 billion accounts already support Passkeys. Google, Apple, and Microsoft have integrated support at the operating system level. Technically, Passkeys implement the WebAuthn standard from the FIDO2 family.

How Passkeys Work

A Passkey consists of an asymmetric key pair. The private key resides in the device Secure Enclave and never leaves it. The public key is sent to the server during registration. During authentication the server issues a random 32-byte challenge. The device signs it after biometric confirmation, and the server verifies the signature with the stored public key. No password travels over the network.

Discoverable credentials enable automatic synchronization across devices via iCloud Keychain on Apple platforms or Google Password Manager on Android. Passkeys replace only the login-password step; after successful verification the backend still issues standard JWT access and refresh tokens.

Database Schema and Models

Two PostgreSQL tables store everything. The webauthn_credentials table holds credential_id, public_key, sign_count, transports, and device_name. The webauthn_challenges table manages one-time challenges with a five-minute TTL. SQLAlchemy models map these tables with proper relationships and cascade deletes.

Backend Service with py-webauthn

The service uses only three environment variables for RP ID, RP name, and origin. Custom exceptions handle verification failures, missing credentials, and deactivated accounts. Methods generate registration and authentication options, verify responses, save and pop challenges, and manage user credentials. All cryptographic operations rely on the mature py-webauthn library.

Related articles

Habr•Other

SberHealth to Host DevOps-Garage Meetup on Infrastructure Security and AI Integration

SberHealth is organizing an online DevOps-garage Meetup scheduled for December 9 from 18:30 to 21:00 Moscow time. The event will examine how complex infrastructure systems are built, the tools selected during development, and the solutions that proved effective in practice. Speakers from SberHealth, SberTech, Kriptonit, and MWS will cover building and scaling data platforms using IaC, GitOps, and open-source tools. Additional topics include multi-layer infrastructure protection methods, deploying Kubernetes in isolated environments, and isolating AI agents within Kubernetes clusters while evaluating sandbox costs. The program also addresses the use of Policy Engine for Kubernetes management in the GenAI era and delegating infrastructure tasks to AI agents. Registration is available via a dedicated link, with contact information provided for those who do not receive confirmation emails.

Habr•Other

Zasechka: Open Source Tool Creates Tamper-Proof Video Timestamps via Bitcoin Blockchain

Zasechka is a new open-source web application that records videos and anchors their timestamps directly into the Bitcoin blockchain using OpenTimestamps. The service performs all encryption locally in the browser with age v1 and X25519 keys derived from a 13-word mnemonic, ensuring no server ever sees the plaintext footage. Before recording, the site fetches the latest Bitcoin block hash and converts its final eight bytes into four random words that the user must speak aloud, establishing a lower time bound that cannot be forged after the fact. After recording, the SHA-256 hash of the encrypted video is submitted to OpenTimestamps, producing an .ots receipt that links the file to a specific Bitcoin block within a 1–6 hour window. The entire workflow runs as a progressive web app on GitHub Pages, requires no accounts, and remains functional offline once installed. Verification happens entirely in the browser: the recipient checks the OpenTimestamps proof against two independent Bitcoin sources and confirms that the spoken words match the block-derived list. The project’s source code and detailed format specification are publicly available on GitHub, inviting community review of the cryptography and any potential weaknesses.

Habr•Other

Ratcast Updates P2P App with Auto Quality Mode, Hardware Encoder Fixes and File Sharing

Ratcast has released a new version of its serverless P2P application focused on voice calls, video conferencing and joint content streaming. The update introduces automatic resolution adaptation that balances network bandwidth and encoder load to maintain optimal image quality without overloading the device. Hardware encoder issues were fixed for both NVENC on Windows and VideoToolbox on macOS, eliminating bitrate deviations that previously caused quality loss or packet loss. Users can now share files directly in chat by dragging them into the window or pasting from the clipboard. Full-screen mode is now available for the local camera in addition to remote participant feeds. Static image handling at high frame rates has also been improved to prevent unnecessary bitrate spikes.

AntiMalware•Other

SberTech Expands AI Agents in Platform V DataSpace to Enable Corporate Application Development from Text Descriptions

SberTech has introduced a new set of skills for its AI agents within the Platform V DataSpace platform, allowing the creation of corporate applications based on textual descriptions. The update focuses on automating the design of architectural components while respecting enterprise environment requirements. Presented at the AI Journey 2026 conference in Moscow, the skills draw from the company's low-code development practices and have been released openly on GitVerse. The AI agents can now handle user interfaces, server-side logic, data models, authorization mechanisms, and access rights. This addresses challenges in vibe coding by providing better architectural control and consistent service structures. According to CEO Maxim Tyatyushev, the capabilities support rapid prototyping, business hypothesis testing, and organizational scaling for both professional developers and non-programmers.