bknd-setup-auth

Configure BKND authentication with JWT, cookies, roles, and admin seeding.

1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/cameronapak/melos --skill bknd-setup-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bknd-setup-auth
Source: https://github.com/cameronapak/melos/tree/main/.agents/skills/bknd-setup-auth
Command: npx skills add https://github.com/cameronapak/melos --skill bknd-setup-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the initial setup and ongoing configuration of the Bknd authentication system, ensuring secure defaults and consistent enforcement of access controls.

Core Features & Use Cases

  • Code-first configuration for JWT, cookies, and roles to accelerate secure app bootstrapping.
  • Role-based access control definitions with default roles and seed strategies for admin users.
  • Production hardening guidance to enforce security best practices across environments.

Quick Start

Run through the essential steps to initialize BKND auth in a new project: enable auth, configure JWT, set cookie policies, define roles, and seed an admin user.

Frequently Asked Questions about bknd-setup-auth

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

FAQPage Schema
How do I configure JWT and cookies for authentication in a Node.js app?

Configuring JWT and cookies for authentication in Node.js involves using code-first configuration blocks to set token policies, secure cookie attributes, and environment-aware defaults to ensure secure app bootstrapping.

What's the best way to set up role-based access control for an admin user?

Setting up role-based access control for an admin user requires defining default roles and applying seed strategies. This approach creates consistent access controls and optionally seeds an initial administrative user during project setup.

How does cookie management work for production authentication hardening?

Cookie management for production authentication hardening works by enforcing security best practices across environments. It applies environment-aware defaults to cookie policies, ensuring secure transmission and access restrictions for authenticated sessions.

Can I use code-first configuration to enable authentication in a BKND project?

Yes, you can use code-first configuration to enable authentication in a BKND project. This method accelerates secure app bootstrapping by allowing you to programmatically define JWT settings, cookie policies, and role structures.

Why do I need to define default roles when setting up JWT authentication?

Defining default roles when setting up JWT authentication is necessary to enforce consistent access controls across your application. It establishes the baseline permissions required before seeding specific administrative users or applying production hardening.