wasp-auth

Configure authentication and user management for Wasp applications.

2|1|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ToonVos/empty-opensaas --skill wasp-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wasp-auth
Source: https://github.com/ToonVos/empty-opensaas/tree/main/.claude/skills/wasp-auth
Command: npx skills add https://github.com/ToonVos/empty-opensaas --skill wasp-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the complex setup of user authentication, login/signup flows, and secure user management in Wasp applications. It eliminates manual configuration, reducing security risks and development time.

Core Features & Use Cases

  • Full Auth Setup: Configure username/password, email verification, and OAuth (Google, GitHub) with minimal code.
  • User Management: Easily handle user data, access auth fields, and create protected routes.
  • Security Best Practices: Enforces Wasp's secure password handling and user model design, preventing common vulnerabilities.
  • Use Case: Quickly integrate email/password and Google OAuth into your new Wasp project, complete with secure login, signup, and protected dashboard routes, all without writing boilerplate.

Quick Start

Set up email and password authentication for my Wasp application. Include login and signup pages, and ensure user data is securely managed.

Frequently Asked Questions about wasp-auth

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

FAQPage Schema
How do I set up user authentication in a Wasp application?

User authentication in Wasp applications is configured by defining a User model and enabling auth methods—username/password, email, or OAuth providers like Google and GitHub. Wasp manages auth tables, password hashing, and session handling automatically, so you define your schema and routes without writing security boilerplate.

Can I use both email/password and OAuth login in the same Wasp app?

Yes, Wasp supports multiple authentication methods simultaneously. You can combine email/password authentication with OAuth providers like Google and GitHub in a single application, letting users choose their preferred login method while maintaining unified user management.

How do I protect routes and access user data in Wasp?

Wasp provides helper accessors like getEmail() and getUsername() to safely retrieve authenticated user fields on both client and server. Protected routes automatically enforce authentication, and Wasp's built-in patterns prevent unauthorized access without manual permission logic.

What's the minimal User model setup required for Wasp authentication?

Wasp authentication requires only a User model with an id field. Wasp automatically creates and manages auth-related tables for passwords, sessions, and OAuth tokens, so you avoid defining authentication infrastructure manually.

Does Wasp provide pre-built login and signup pages?

Wasp includes prebuilt authentication pages for login and signup flows. These pages handle form validation, password security, and OAuth integration, so you can enable user registration and login without designing UI or writing authentication handlers from scratch.

What security best practices does Wasp enforce for user management?

Wasp enforces secure password handling with hashing, session management, and a minimal User model design that reduces attack surface. These patterns prevent common vulnerabilities like plaintext password storage and unauthorized data exposure across client and server code.