[PR #3793] [CLOSED] feat: add Whop social provider #13255

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

📋 Pull Request Information

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

Base: canaryHead: feat/whop-oauth


📝 Commits (10+)

  • 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
  • 9c0c027 Merge branch 'main' into feat/whop-oauth
  • 48cdb32 Merge branch 'main' into feat/whop-oauth
  • 14c142e Merge branch 'canary' into feat/whop-oauth
  • 94dd75a Merge branch 'canary' into feat/whop-oauth

📊 Changes

5 files changed (+209 additions, -14 deletions)

View changed files

📝 docs/components/landing/section-svg.tsx (+7 -0)
📝 docs/components/sidebar-content.tsx (+34 -0)
docs/content/docs/authentication/whop.mdx (+47 -0)
📝 packages/better-auth/src/social-providers/index.ts (+15 -14)
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, allowing users to sign in with Whop using OAuth 2.0. Updated documentation and sidebar navigation to include Whop setup instructions and a new link.

  • New Features
    • Implemented Whop OAuth provider with full authentication flow and user profile mapping.
    • Added Whop documentation and sidebar entry for easy access.

🔄 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/3793 **Author:** [@haxurn](https://github.com/haxurn) **Created:** 8/5/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/whop-oauth` --- ### 📝 Commits (10+) - [`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 - [`9c0c027`](https://github.com/better-auth/better-auth/commit/9c0c027b5ce024e962e02bc1ea9d46fec1a082b1) Merge branch 'main' into feat/whop-oauth - [`48cdb32`](https://github.com/better-auth/better-auth/commit/48cdb32e8fb22c954a6c13c80c42dd616388ef3d) Merge branch 'main' into feat/whop-oauth - [`14c142e`](https://github.com/better-auth/better-auth/commit/14c142ec83cd90e86a1e82e4a5ef1ebd91e3cfcd) Merge branch 'canary' into feat/whop-oauth - [`94dd75a`](https://github.com/better-auth/better-auth/commit/94dd75ab9ff4b960a4cbe9c3ef30f56798f003a1) Merge branch 'canary' into feat/whop-oauth ### 📊 Changes **5 files changed** (+209 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/landing/section-svg.tsx` (+7 -0) 📝 `docs/components/sidebar-content.tsx` (+34 -0) ➕ `docs/content/docs/authentication/whop.mdx` (+47 -0) 📝 `packages/better-auth/src/social-providers/index.ts` (+15 -14) ➕ `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, allowing users to sign in with Whop using OAuth 2.0. Updated documentation and sidebar navigation to include Whop setup instructions and a new link. - **New Features** - Implemented Whop OAuth provider with full authentication flow and user profile mapping. - Added Whop documentation and sidebar entry for easy access. <!-- 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:41 -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#13255