setup-nextjs

Integrate Sigma Auth OAuth into Next.js applications with the @sigma-auth/better-auth-plugin.

Updated Nov 16, 2025
One-click install
npx skills add https://github.com/b-open-io/better-auth-plugin --skill setup-nextjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-nextjs
Source: https://github.com/b-open-io/better-auth-plugin/tree/main/skills/setup-nextjs
Command: npx skills add https://github.com/b-open-io/better-auth-plugin --skill setup-nextjs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the integration of Sigma Auth (Bitcoin-native authentication) into Next.js applications, streamlining the setup process for secure, decentralized identity verification.

Core Features & Use Cases

  • Guided Integration: Provides step-by-step instructions for setting up OAuth, configuring environment variables, and implementing authentication flows.
  • Project Analysis: Detects your project structure and offers tailored setup recommendations.
  • Use Case: Quickly add secure Bitcoin-native login to your new or existing Next.js e-commerce site, ensuring users can authenticate using their existing digital identity.

Quick Start

Run bun run scripts/detect.ts in your Next.js project directory to get setup recommendations.

Frequently Asked Questions about setup-nextjs

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

FAQPage Schema
How do I integrate Bitcoin-native authentication into a Next.js application?

To integrate Bitcoin-native authentication in Next.js, configure environment variables and use the @sigma-auth/better-auth-plugin for OAuth setup, API routes, and client-side sign-in components.

How do I set up Sigma Auth OAuth in Next.js step by step?

Setting up Sigma Auth OAuth in Next.js involves project detection, environment variable validation, client configuration, API route creation for token exchange, and implementing client-side sign-in components.

Does the Sigma Auth better-auth-plugin work with existing Next.js projects?

Yes, the Sigma Auth plugin works with existing Next.js projects by detecting your project structure and offering tailored setup recommendations for integrating Bitcoin-native authentication.

Why does my Next.js OAuth setup return CSRF errors and callback mismatches?

CSRF errors and callback mismatches during Next.js OAuth setup occur when environment variables are misconfigured or API routes are incorrectly mapped, requiring validation and route adjustments.

What is Sigma Auth and when do I need it for my Next.js e-commerce site?

Sigma Auth is a Bitcoin-native authentication system needed for Next.js e-commerce sites requiring secure, decentralized identity verification using existing digital identities.

Can I use Bun to configure the Sigma Auth plugin in my Next.js project?

Yes, you can use Bun to configure the Sigma Auth plugin by running the project detection script to analyze your Next.js structure and generate setup recommendations.