bknd-login-flow

Implement login, logout, and session checks in BKND applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often struggle to implement consistent, secure authentication flows in BKND-based apps, duplicating logic across frontend and backend.

Core Features & Use Cases

  • SDK authentication methods and REST API endpoints
  • React integration with useAuth patterns and session checks
  • Centralized error handling and token management for login/logout

Quick Start

Use the bknd-login-flow skill to implement a complete login/logout flow in a BKND application, including SDK login, me() session check, and logout handling.

Frequently Asked Questions about bknd-login-flow

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

FAQPage Schema
How do I implement login and logout flows in a React application using a REST API?

You can implement login and logout flows by using SDK authentication methods alongside the @bknd/react package to integrate useAuth patterns and perform session checks within your React application.

What is the best way to manage user sessions and check the current logged-in user in BKND?

The best way to manage user sessions in BKND is by initializing the API client and using the me() session check method to verify the current user's authentication status across your application.

Do I need to install specific packages to handle BKND authentication in my frontend?

Yes, you need the bknd package installed to handle backend SDK authentication and REST API endpoints, and the @bknd/react package to implement useAuth patterns and session checks for frontend integration.

How does error handling work across frontend and backend layers during a BKND login flow?

Error handling during a BKND login flow is centralized to manage authentication errors and token management consistently across both frontend and backend layers, preventing duplicated logic.

Can I use BKND SDK methods for authentication without duplicating logic across my application?

Yes, using the bknd-login-flow approach allows you to standardize SDK authentication methods, REST API endpoints, and token management centrally, eliminating duplicated authentication logic across frontend and backend layers.