auth

Implement secure sign-in flows and session management across web and mobile contexts.

4|2|Updated Sep 17, 2025
One-click install
npx skills add https://github.com/SylphxAI/flow --skill auth-sylphxai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth
Source: https://github.com/SylphxAI/flow/tree/main/.claude/skills/auth
Command: npx skills add https://github.com/SylphxAI/flow --skill auth-sylphxai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers implement secure authentication patterns across applications, reducing risk and delaying feature friction.

Core Features & Use Cases

  • Sign-in flow templates (password-based, passwordless, MFA)
  • Session management best practices and lifecycle handling
  • SSO integration patterns with major providers (Google, GitHub, etc.)
  • Security considerations: server-enforced authorization and robust recovery flows

Quick Start

Configure a Next.js project with next-auth to enable sign-in, SSO, and passwordless options, and implement secure session management.

Frequently Asked Questions about auth

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

FAQPage Schema
How do I implement secure sign-in flows for my web application?

Secure sign-in flows require server-side validation, session management, and protection against common attacks like CSRF and injection. This skill provides sign-in templates for password-based, passwordless, and MFA options, with guidance on session lifecycle, token handling, and server-enforced authorization to protect user credentials and maintain secure state across requests.

What's the best way to add single sign-on (SSO) to my app?

SSO integration patterns delegate authentication to trusted providers like Google or GitHub, reducing credential management burden. This skill covers SSO setup with major identity providers, including session handling, token validation, and how to enforce authorization decisions server-side to ensure secure delegation without compromising your app's security posture.

Can I use passwordless authentication instead of passwords?

Passwordless authentication—via passkeys, email links, or device verification—eliminates password-related vulnerabilities. This skill includes passwordless flow templates and best practices for implementing them securely, including recovery mechanisms and session management to maintain protection across web and mobile contexts.

How do I manage user sessions securely across requests?

Session management requires secure token generation, expiration policies, and server-side validation on every request. This skill covers session lifecycle best practices, including secure storage, refresh strategies, and how to enforce authorization decisions server-side to prevent token misuse and session hijacking.

Does this approach work for both web and mobile applications?

Yes. This skill provides authentication patterns and session management guidance applicable across web and mobile contexts, covering platform-specific considerations like token storage, deep-linking, and cross-platform session consistency while maintaining server-side security enforcement.

What security considerations should I know before implementing authentication?

Critical considerations include server-enforced authorization, secure recovery flows, protection against injection and CSRF attacks, and proper token handling. This skill emphasizes these security patterns throughout, helping you avoid common pitfalls and design authentication that scales without compromising user safety.