bedrud-api-auth

Authenticate Bedrud API endpoints with JWT, OAuth, and passkey flows.

6|1|Updated May 4, 2026
One-click install
npx skills add https://github.com/themadorg/bedrud --skill bedrud-api-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bedrud-api-auth
Source: https://github.com/themadorg/bedrud/tree/main/.agents/skills/bedrud-api-auth
Command: npx skills add https://github.com/themadorg/bedrud --skill bedrud-api-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a complete authentication and authorization system for Bedrud API services, including JWT-based sessions, local and OAuth logins, passkeys, email verification, preferences, and consistent error handling, all secured by middleware and rate limiting.

Core Features & Use Cases

  • JWT flow with access and refresh tokens, HttpOnly cookies, and refresh rotation.
  • Local, OAuth, and Passkeys authentication flows with registration and login endpoints.
  • Global and route-specific middleware for protected routes, access level checks, and rate limiting.
  • User preferences, verification, and public settings for onboarding and security management.
  • Health and readiness endpoints for service checks and TLS provisioning.

Quick Start

Integrate the Bedrud API auth module by wiring the JWT middleware and /api/auth routes into your server, then test login flows.

Frequently Asked Questions about bedrud-api-auth

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

FAQPage Schema
How do I implement JWT authentication with access and refresh tokens using HttpOnly cookies?

JWT authentication with access and refresh tokens is implemented using HttpOnly cookies and refresh rotation. This approach secures Bedrud API endpoints by validating tokens via middleware and rotating refresh tokens automatically to prevent session hijacking.

Can I add passkey authentication and OAuth login flows to my API?

Yes, passkey authentication and OAuth login flows are fully supported alongside local registration. The system provides dedicated endpoints for passkey registration and login, allowing API services to offer passwordless authentication and third-party OAuth provider integrations.

What is the best way to protect API routes with middleware and rate limiting?

Protecting API routes with middleware and rate limiting is best handled by applying global and route-specific middleware. This enforces permission checks, validates JWT access, and applies rate limiting to prevent abuse on protected endpoints.

Does this auth system support user preferences and email verification endpoints?

Yes, the auth system supports user preferences and email verification endpoints. It includes public settings for onboarding and manages user preference updates, ensuring accounts are verified and customized before accessing protected API resources.

How do I set up health and readiness endpoints for API service checks?

Health and readiness endpoints are set up by wiring dedicated routes into your server configuration. These endpoints provide service checks for API availability and TLS provisioning readiness, ensuring your authenticated services report operational status correctly.