auth-flow

Automate ReservAqui backend authentication flows with bcrypt hashing and token management.

8|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo --skill auth-flow-gabriellpequeno
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-flow
Source: https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo/tree/main/.agent/skills/auth-flow
Command: npx skills add https://github.com/gabriellpequeno/Reserva-Aqui---Projeto-de-fim-de-ciclo --skill auth-flow-gabriellpequeno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Skill streamlines the design and enforcement of login, registration, and authentication flows for ReservAqui backend, ensuring security, consistency, and faster onboarding.

Core Features & Use Cases

  • Auth flow orchestration: validates and coordinates user and host authentication, registration, and token management.
  • Security-conscious defaults: enforces bcrypt hashing, input validation, and standard route scaffolding through controllers, services, and entities.
  • Use Case: when updating login or registration logic, this skill provides end-to-end guidance and concrete patterns for master/tenant architecture.

Quick Start

Define and implement the backend auth flow for ReservAqui, covering user and host registration, login, bcrypt hashing, session or token management, and the full CRUD of auth-related entities.

Frequently Asked Questions about auth-flow

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

FAQPage Schema
How do I implement a secure login and registration flow with bcrypt and token management?

Implement secure login and registration by orchestrating bcrypt password hashing, input validation, and session token management across controllers, services, and entities. This approach enforces security-conscious defaults and standard route scaffolding for user and host onboarding.

What is the best way to structure authentication middleware for a multitenancy backend?

Structuring authentication middleware for a multitenancy backend requires integrating auth validators and token management across both master and tenant databases. This ensures isolated session handling and consistent route protection throughout the architecture.

How does bcrypt hashing work within a user and host authentication flow?

Bcrypt hashing within an authentication flow works by automatically applying secure password hashing during user and host registration. The flow enforces these security-conscious defaults directly inside the service layer before database persistence.

Can I use this auth flow orchestration for both user and host onboarding?

Yes, you can use this auth flow orchestration for both user and host onboarding. It validates and coordinates registration, login, and token management specifically tailored for these two roles within the ReservAqui backend architecture.

What are the limitations of manually building login and registration logic without standard route scaffolding?

Manually building login and registration logic without standard route scaffolding risks security gaps and architectural inconsistency. Without enforced bcrypt hashing and integrated validators, maintaining session management across master and tenant databases becomes error-prone.

Do I need separate controllers and entities for user and host authentication?

You need dedicated controllers, services, and entities to properly handle user and host authentication. This separation enforces project rules and security guidelines while maintaining distinct token management and validation logic across master and tenant databases.