SShortSingh.
Back to feed

Supabase Send SMS Hook lets developers use any OTP provider for phone auth

0
·1 views

Supabase supports phone-based authentication but limits built-in SMS providers to a short list, leaving some developers without a direct option. A feature called the Send SMS Hook allows any compatible external endpoint to handle OTP delivery by receiving the code and phone number via an HTTPS POST from Supabase. Developers configure the hook inside the Supabase Authentication settings by generating a secret, then supplying the resulting URL from their chosen provider. Requests are signed using the Standard Webhooks scheme, and the endpoint must return an empty 200 response to signal success. The same hook can also route one-time codes through WhatsApp or Telegram, with no changes required on the Supabase client side.

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 ·

Four calculations that reveal your LLM feature's true monthly cost upfront

Developers often select AI models based on benchmark scores without estimating real costs, only discovering the financial impact weeks later when invoices arrive. A practical method breaks any LLM workload into four numbers — daily calls, input tokens per call, output tokens per call, and active days per month — to produce an accurate monthly cost estimate before writing code. Input tokens are the most commonly underestimated factor, since system prompts and retrieved context can dwarf the user's actual message on every single call. Comparing a frontier-tier model against a mid-tier alternative using illustrative figures reveals a difference of roughly one cent per conversation, which can scale to hundreds or thousands of dollars monthly at volume. Crucially, input and output token prices scale at different rates across tiers, so the model that appears cheaper overall may not be, depending on a workload's specific input-to-output ratio.

0
ProgrammingDEV Community ·

LLMRix Launches Open-Source Multi-Model Routing Framework for Java AI Apps

LLMRix Model Router is a newly released open-source framework designed to handle multi-model routing and orchestration for Java-based AI applications. It addresses common production challenges such as rate limits, provider outages, cost control, and failover by sitting as a dedicated layer between business code and AI model services. The framework supports multiple providers including OpenAI, DeepSeek, Ollama, and OpenRouter through a unified interface, eliminating the need to hardcode model names or provider logic in application code. It is structured into distinct layers covering access, routing, integration, and observability, with state management options via local memory or Redis. The project aims to let developers change routing strategies independently without affecting the correctness of request execution.

0
ProgrammingDEV Community ·

Why Comparing PDF Files Remains a Harder Problem Than It Should Be

Despite powerful diff tools existing for code and plain text, comparing two PDF files for changes remains a surprisingly complex task. Unlike source code, a PDF page can contain text, images, fonts, vector graphics, and layout instructions — meaning identical text can render differently, and visual changes may leave text extracts unchanged. Developers often resort to extracting text and running a standard diff, but this approach misses layout shifts, replaced images, or formatting changes. Rendering each page as an image and doing a pixel-level comparison catches visual differences, yet introduces its own problems such as anti-aliasing artifacts and engine-level rendering inconsistencies. The core challenge is that PDFs blend textual and visual content in ways that no single comparison method fully addresses.

0
ProgrammingDEV Community ·

MeshCtx Developer Shares Hard Lessons on Running AI Agents Reliably in Production

A developer behind MeshCtx, an open-source AI agent platform, has detailed the real-world challenges of keeping AI systems stable in production environments, noting that failures often occur silently overnight rather than visibly during demos. The team reports their three-machine cluster is currently running 15 of 15 modules online with zero errors on version 3.121.7. MeshCtx backs its stability claims with 3,728 automated tests passing across Windows, macOS, and Linux, along with a LongTermMemEval exact-match score of 64.6 percent. The platform uses a 17-region layered memory architecture designed to prevent task states and data from interfering with one another across sessions. Released under the MIT license, the project is freely available at meshctx.com, and the developers encourage users to independently verify all published test results.

Supabase Send SMS Hook lets developers use any OTP provider for phone auth · ShortSingh