authentication

Manage authentication architecture with auth methods, services, guards, and sessions for Swift apps.

32|10|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/moasq/nanowave --skill authentication-moasq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: authentication
Source: https://github.com/moasq/nanowave/tree/main/internal/orchestration/skills/features/authentication
Command: npx skills add https://github.com/moasq/nanowave --skill authentication-moasq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust framework for implementing authentication and authorization in your application, ensuring secure user access and managing sessions effectively.

Core Features & Use Cases

  • Auth Method Management: Supports email/password, anonymous guest, Apple Sign In, and Google Sign In, with flexible combination options.
  • Service Architecture: Centralizes authentication logic in a dedicated AuthService for clean state management and ViewModel consumption.
  • Auth Modes: Implements both "Gate mode" (app-root authentication) and "Optional mode" (feature-specific authentication).
  • Use Case: When building a new social media app, use this Skill to implement sign-up/sign-in flows using email/password and optionally allow users to sign in with their Apple or Google accounts.

Quick Start

Use the authentication skill to implement email and password sign-in with anonymous guest access.

Frequently Asked Questions about authentication

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

FAQPage Schema
How do I implement user authentication and session management in SwiftUI?

User authentication and session management in SwiftUI is handled by centralizing auth logic in a dedicated AuthService, ensuring clean state management and ViewModel consumption for secure user access. This architecture supports backend service integration for session persistence.

Can I use Supabase for secure user authentication in Swift applications?

Yes, Supabase is supported for secure user authentication in Swift applications. The authentication architecture integrates directly with backend services like Supabase to handle user authentication and ensure secure session persistence across app launches.

What is the best way to structure email/password and social sign-in flows in Swift?

The best way to structure email/password and social sign-in flows is using an Auth Method Management system that supports email/password, anonymous guest, Apple Sign In, and Google Sign In with flexible combination options within a centralized AuthService.

How does Gate mode differ from Optional mode for app-root authentication?

Gate mode differs from Optional mode by enforcing app-root authentication globally, whereas Optional mode enables feature-specific authentication. Both modes provide explicit rules for method selection and managing the authentication service lifecycle.

Does this authentication architecture support anonymous guest access?

Yes, the authentication architecture explicitly supports anonymous guest access alongside email/password, Apple Sign In, and Google Sign In. This allows users to explore features securely before committing to a full account registration.