Better Auth OAuth/OIDC Setup Skill

Configure OAuth 2.1 and OpenID Connect with Better Auth's OIDC Provider plugin.

9|2|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/mjunaidca/robolearn --skill better-auth-oauth-oidc-setup-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Better Auth OAuth/OIDC Setup Skill
Source: https://github.com/mjunaidca/robolearn/tree/main/.claude/skills/engineering/better-auth-setup
Command: npx skills add https://github.com/mjunaidca/robolearn --skill better-auth-oauth-oidc-setup-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides implementing OAuth 2.1 / OpenID Connect authentication using the Better Auth platform with the OIDC Provider plugin. It helps you centralize authentication, enable Single Sign-On across apps, and configure an extensible authorization server.

Core Features & Use Cases

  • Auth Server Setup with PKCE: Create a public OAuth2 client and secure authorization flows for SPAs.
  • OIDC Provider Integration: Extend userinfo with custom claims and admin dashboards for user management.
  • Admin-Controlled Client Registration: Gate client registrations behind admin access to prevent uncontrolled clients.
  • Use Case: If you have many microfrontends or SaaS tenants, you can unify authentication under a single identity provider and reuse policies.

Quick Start

Run the setup to configure a public client with PKCE and enable a basic OIDC provider for a SPA at http://localhost:3000.