Auth
Build secure authentication with sessions, JWT, OAuth, passwordless, MFA, and SSO for web and mobile apps.
Why use this skill?
Learn to build secure authentication systems with sessions, JWT, OAuth, and MFA. Get expert guidance and industry-standard security patterns for web and mobile apps.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ivangdavila/authWhat This Skill Does
The Auth skill serves as a comprehensive, documentation-only architectural reference guide for developers building secure authentication systems. It provides standardized patterns and best practices for integrating sessions, JSON Web Tokens (JWT), OAuth, passwordless flows, MFA, and SSO into web and mobile applications. This skill acts as a mentor, offering conceptual explanations and template code structures that developers can adapt for their specific tech stacks. It focuses on the 'who' of identity management, ensuring that implementations adhere to industry-standard security protocols without exposing actual credentials or making live network calls.
Installation
To integrate this documentation resource into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/ivangdavila/auth
Once installed, you can query the agent about specific authentication strategies or security patterns, and it will pull from its internal reference files to provide context-aware, secure implementation advice.
Use Cases
This skill is designed for developers who need to:
- Decide between session-based cookies or stateless JWT strategies based on application architecture.
- Implement secure password storage using modern hashing algorithms like Argon2id or bcrypt.
- Integrate social login providers via OAuth2 or OpenID Connect.
- Design multi-factor authentication (MFA) workflows that increase account security without sacrificing user experience.
- Properly configure middleware to protect routes and handle token refreshing securely.
- Learn how to structure login endpoints that fail securely without leaking user account information to malicious actors.
Example Prompts
- "I'm building a mobile app that needs to maintain a user session without cookies. What is the recommended strategy for using JWTs and how do I handle refresh token rotation?"
- "Can you show me the best way to handle password security in my Node.js backend using bcrypt? I want to ensure my settings are secure by default."
- "I need to implement an OAuth login using GitHub. What are the key security headers and flow steps I should watch out for to prevent authorization code interception?"
Tips & Limitations
- Documentation Only: This skill contains no active code execution, network requests, or data storage. It is purely an educational tool to guide your own implementation.
- Security Responsibility: While the skill promotes best practices (like never rolling your own crypto), the ultimate responsibility for code security lies with the developer. Always audit your code using static analysis tools.
- Placeholder Warning: The provided code templates use example variables (e.g.,
SECRET). You must ensure these are replaced by robust, environment-managed secrets in your production deployment. - Contextual Guidance: The agent provides guidance on 'Authentication' (who you are), which is distinct from 'Authorization' (permissions). Keep these concerns decoupled for a more maintainable architecture.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ivangdavila-auth": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
Animations
Create performant web animations with proper accessibility and timing.
Arduino
Develop Arduino projects avoiding common wiring, power, and code pitfalls.
Bulgarian
Write Bulgarian that sounds human. Not formal, not robotic, not AI-generated.
Arabic
Write Arabic that sounds human. Not formal, not robotic, not AI-generated.
Assistant
Manage tasks, communications, and scheduling with proactive and organized support.