modern-auth-2026

Implement passwordless authentication with passkeys, OAuth, and Supabase.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/selrai-company/claude-workshop-kit --skill modern-auth-2026-selrai-company
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: modern-auth-2026
Source: https://github.com/selrai-company/claude-workshop-kit/tree/main/skills/modern-auth-2026
Command: npx skills add https://github.com/selrai-company/claude-workshop-kit --skill modern-auth-2026-selrai-company

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Eliminates insecure password-based signups and fragile social-login wiring by providing a production-ready, passwordless-first authentication architecture that reduces phishing and account takeover risk while enabling cross-device sign-in.

Core Features & Use Cases

  • Passkeys / WebAuthn: Complete registration and authentication flows with server-side challenge verification and credential storage patterns.
  • OAuth (Google, Apple): Provider configuration and redirect handling for web and native apps, including App Store compliance notes for Apple.
  • Magic Links & Recovery: Short-lived magic links, email recovery hierarchy, and backup passkey guidance for account recovery.
  • Supabase Integration: Database schema, RLS policies for credential rows, Supabase Auth configuration checklist, and session exchange patterns.
  • MFA & Cross-Device Sync: TOTP and passkey-as-2FA patterns, guidance for platform vs cross-platform attachments, and QR/QR+hybrid flows for devices without local credentials.
  • Use Case: Replace password signups in a Next.js + Supabase app with passkeys as primary method, Google/Apple sign-in as social fallback, and short-lived magic links for email recovery.

Quick Start

Add passkeys and OAuth to your Next.js app by implementing the provided server-side challenge endpoints, storing public keys in a passkey_credentials table, and configuring Google and Apple providers in the Supabase dashboard.

Frequently Asked Questions about modern-auth-2026

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement passkeys and WebAuthn authentication in a Next.js app?▼

Implement passkeys and WebAuthn in Next.js by creating server-side challenge endpoints, storing public keys in a dedicated credentials table, and verifying authenticator counters during the login flow. Supabase handles session management and secure data storage.

What is the best way to replace password logins with passwordless authentication in Supabase?▼

The best way to replace password logins in Supabase is using a passwordless-first architecture combining passkeys for primary sign-in, OAuth for social fallback, and short-lived magic links for email recovery to reduce phishing and account takeover risk.

Does Supabase support passkeys, OAuth, and magic links for web and mobile apps?▼

Supabase supports passwordless authentication including passkeys, OAuth providers like Google and Apple, and magic links. It manages database schemas, RLS policies for credential rows, and session exchange patterns for both web and mobile apps.

How do you handle cross-device passkey sync and account recovery without passwords?▼

Handle cross-device passkey sync using platform vs cross-platform attachments and QR hybrid flows for devices lacking local credentials. Manage account recovery via an email recovery hierarchy with short-lived magic links and backup passkeys.

Can I use passkeys as a second factor for MFA with TOTP in Supabase?▼

You can use passkeys as a second factor for MFA alongside TOTP patterns in Supabase. This involves configuring multi-factor authentication flows that verify server-generated short-lived challenges during the WebAuthn authentication process.

What database schema and RLS policies are needed for WebAuthn credential storage in Supabase?▼

WebAuthn credential storage in Supabase requires a passkey_credentials table with strict Row Level Security policies to secure public-key rows. This ensures only authenticated users can access or update their credential data during passkey registration and authentication.