SShortSingh.
Back to feed

How Login Authentication Works: From Browser Click to Server Verification

0
·1 views

When a user clicks 'Login', the browser sends their credentials via an HTTP POST request to a backend API endpoint over HTTPS, keeping the data encrypted in transit. The backend first validates the input before querying the database to check whether an account with the provided email exists. Passwords are never stored in plain text; instead, databases hold hashed versions of passwords for security. The server then compares the submitted password against the stored hash to verify the user's identity. If verification succeeds, the backend issues a session or token, which the browser uses to maintain the logged-in state for subsequent requests.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Developer Launches Free Browser-Only AI Toolkit With No Server Costs

A developer has released RunAIToolkit, a suite of AI utility tools that runs entirely within the browser, eliminating the need for backend servers. The platform includes a token and API cost estimator, a prompt and markdown cleaner, and an image grid splitter for outputs from tools like Midjourney and Flux. All processing is handled client-side using Web Workers and HTML5 Canvas, meaning user data never leaves the browser. Built with Next.js and deployed via Cloudflare Pages, the platform operates at zero monthly infrastructure cost. The developer created the toolkit to address privacy concerns and latency issues common in third-party AI workflow tools.

0
ProgrammingDEV Community ·

Why Stylish Copy-Paste Text Is Unicode Characters, Not Custom Fonts

Stylish text that can be copied and pasted across platforms like Instagram and Discord typically uses special Unicode characters rather than traditional font files. Unicode is a global standard that assigns unique code points to thousands of characters, including mathematical and decorative symbols that visually resemble bold, italic, or script letters. Because these are distinct characters — not styled versions of ordinary letters — they carry their appearance with them without requiring any font file to be transferred. Tools like text generators work by mapping standard input characters to alternative Unicode characters that have different visual forms. This is why the same decorative text can appear correctly on any platform that supports those Unicode characters, regardless of installed fonts.

0
ProgrammingDEV Community ·

Developer builds Kubernetes operator to automate homelab responses to network state changes

A software developer built UniFi Reactor, a Kubernetes operator that monitors UniFi network hardware state and triggers automated cluster responses based on conditions like power outages or WAN failovers. The tool was created after the developer noticed that adding a UPS and backup internet connection exposed a gap: Kubernetes had no awareness of network or power state changes. UniFi Reactor polls the UniFi Network API, normalizes data into state keys covering WAN status, UPS condition, and device health, and reconciles these against user-defined automation rules. For example, when the UPS switches to battery power, the operator can automatically scale down non-essential workloads like machine learning jobs and restore them when mains power returns. Unlike monitoring tools such as Prometheus, which alert on state changes, UniFi Reactor is designed to actively modify cluster behavior for the duration of a given condition.

0
ProgrammingDEV Community ·

How to Avoid Silent Errors When Translating Plain-English Requests into SQL

Converting plain-English data requests into SQL queries is a common task that often produces subtly incorrect results, even when the query runs without errors. Key pitfalls include ambiguous JOIN types, unhandled NULL or empty-string values, self-referential table relationships, and SQL dialect differences across databases like PostgreSQL, SQL Server, and Oracle. Experts recommend verifying that join types match the actual intent of a request, checking how WHERE clauses handle edge-case values, and confirming the target database dialect before running any generated query. Asking a query generator to state its assumptions explicitly — such as how it defines 'recent' — is more reliable than simply accepting the output at face value. Tools like Craftloop's SQL Generator aim to address these issues by returning not just the query but also its assumptions, a plain-English explanation, and an optional entity-relationship diagram for review.