[PR #3792] [CLOSED] feat: add Whop social provider #13254

Closed
opened 2026-04-13 08:50:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3792
Author: @haxurn
Created: 8/4/2025
Status: Closed

Base: canaryHead: feat/whop-oauth


📝 Commits (6)

  • 6e765a1 fix(org): use correct slug lookup when setting active org
  • c9ac6c9 docs: adding reference to surrealdb adapter rewrite (#3754)
  • 669b70d chore(demo): replace isLoading using useTransition (#3775)
  • e9be8dd fix(reddit): refresh access token should use basic auth (#3753)
  • 3f281c4 feat(oauth): add Whop authentication provider and documentation
  • 92aa6da feat(sidebar): mark Whop documentation link as new

📊 Changes

14 files changed (+356 additions, -130 deletions)

View changed files

.changeset/old-planets-camp.md (+5 -0)
📝 demo/nextjs/app/client-test/page.tsx (+19 -21)
📝 demo/nextjs/app/dashboard/user-card.tsx (+21 -19)
📝 demo/nextjs/components/sign-in.tsx (+11 -11)
📝 docs/app/docs/[[...slug]]/page.client.tsx (+5 -8)
📝 docs/components/generate-apple-jwt.tsx (+45 -42)
📝 docs/components/sidebar-content.tsx (+34 -0)
📝 docs/content/docs/adapters/community-adapters.mdx (+1 -0)
docs/content/docs/authentication/whop.mdx (+47 -0)
📝 packages/better-auth/src/plugins/organization/organization.test.ts (+19 -5)
📝 packages/better-auth/src/plugins/organization/routes/crud-org.ts (+27 -10)
📝 packages/better-auth/src/social-providers/index.ts (+15 -14)
📝 packages/better-auth/src/social-providers/reddit.ts (+1 -0)
packages/better-auth/src/social-providers/whop.ts (+106 -0)

📄 Description

Add Whop Social Provider

Implements Whop OAuth integration for Better Auth, enabling "Sign in with Whop" functionality.

Changes

  • New Whop OAuth provider with complete flow implementation
  • Documentation following established patterns
  • Sidebar navigation and icon integration
  • TypeScript interfaces and proper error handling

Usage

socialProviders: {
  whop: {
    clientId: process.env.WHOP_CLIENT_ID,
    clientSecret: process.env.WHOP_CLIENT_SECRET,
  }
}

Uses official Whop OAuth endpoints and supports standard OAuth 2.0 flow with user profile mapping.


Summary by cubic

Added Whop as a new social provider, enabling "Sign in with Whop" OAuth support and updated documentation.

  • New Features
    • Implemented Whop OAuth provider with full authorization flow and user profile mapping.
    • Added Whop setup guide and sidebar link in the documentation.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3792 **Author:** [@haxurn](https://github.com/haxurn) **Created:** 8/4/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/whop-oauth` --- ### 📝 Commits (6) - [`6e765a1`](https://github.com/better-auth/better-auth/commit/6e765a136be7d3cd85e6f219b0826b7c744a3b1c) fix(org): use correct slug lookup when setting active org - [`c9ac6c9`](https://github.com/better-auth/better-auth/commit/c9ac6c9fbf4671ccb2ebf97500805f3ad7906ce6) docs: adding reference to surrealdb adapter rewrite (#3754) - [`669b70d`](https://github.com/better-auth/better-auth/commit/669b70de86c4631fac4466c452fb9bf7a0670505) chore(demo): replace isLoading using `useTransition` (#3775) - [`e9be8dd`](https://github.com/better-auth/better-auth/commit/e9be8dd3aae953a974ec92a14430cc4087077936) fix(reddit): refresh access token should use `basic` auth (#3753) - [`3f281c4`](https://github.com/better-auth/better-auth/commit/3f281c42d9ed6c59007bf5f6e55d3b9c84d2d7d1) feat(oauth): add Whop authentication provider and documentation - [`92aa6da`](https://github.com/better-auth/better-auth/commit/92aa6da8b94a4b4296e735602caa0ab0ca9add28) feat(sidebar): mark Whop documentation link as new ### 📊 Changes **14 files changed** (+356 additions, -130 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/old-planets-camp.md` (+5 -0) 📝 `demo/nextjs/app/client-test/page.tsx` (+19 -21) 📝 `demo/nextjs/app/dashboard/user-card.tsx` (+21 -19) 📝 `demo/nextjs/components/sign-in.tsx` (+11 -11) 📝 `docs/app/docs/[[...slug]]/page.client.tsx` (+5 -8) 📝 `docs/components/generate-apple-jwt.tsx` (+45 -42) 📝 `docs/components/sidebar-content.tsx` (+34 -0) 📝 `docs/content/docs/adapters/community-adapters.mdx` (+1 -0) ➕ `docs/content/docs/authentication/whop.mdx` (+47 -0) 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+19 -5) 📝 `packages/better-auth/src/plugins/organization/routes/crud-org.ts` (+27 -10) 📝 `packages/better-auth/src/social-providers/index.ts` (+15 -14) 📝 `packages/better-auth/src/social-providers/reddit.ts` (+1 -0) ➕ `packages/better-auth/src/social-providers/whop.ts` (+106 -0) </details> ### 📄 Description ## Add Whop Social Provider Implements Whop OAuth integration for Better Auth, enabling "Sign in with Whop" functionality. ### Changes - ✅ New Whop OAuth provider with complete flow implementation - ✅ Documentation following established patterns - ✅ Sidebar navigation and icon integration - ✅ TypeScript interfaces and proper error handling ### Usage ```ts socialProviders: { whop: { clientId: process.env.WHOP_CLIENT_ID, clientSecret: process.env.WHOP_CLIENT_SECRET, } } ``` Uses official Whop OAuth endpoints and supports standard OAuth 2.0 flow with user profile mapping. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added Whop as a new social provider, enabling "Sign in with Whop" OAuth support and updated documentation. - **New Features** - Implemented Whop OAuth provider with full authorization flow and user profile mapping. - Added Whop setup guide and sidebar link in the documentation. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 08:50:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#13254