[PR #5626] [MERGED] feat(paybin): add Paybin OAuth provider #6122

Closed
opened 2026-03-13 12:48:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5626
Author: @redoh
Created: 10/27/2025
Status: Merged
Merged: 10/28/2025
Merged by: @himself65

Base: canaryHead: feat/paybin-provider


📝 Commits (2)

  • c2270e1 feat(paybin): add Paybin OAuth provider
  • 16b42b1 Update packages/core/src/social-providers/paybin.ts

📊 Changes

4 files changed (+238 additions, -0 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+32 -0)
docs/content/docs/authentication/paybin.mdx (+81 -0)
📝 packages/core/src/social-providers/index.ts (+3 -0)
packages/core/src/social-providers/paybin.ts (+122 -0)

📄 Description

This pull request adds support for the Paybin OAuth provider to the authentication system, including documentation, provider implementation, and integration into the provider registry. The changes introduce a new Paybin provider with a dedicated setup guide, making it easy for developers to configure and use Paybin for authentication.

Paybin Provider Integration

  • Added a new paybin OAuth provider implementation in packages/core/src/social-providers/paybin.ts, supporting authorization, token exchange, refresh, and user profile mapping according to OpenID Connect standards.
  • Registered the paybin provider in the socialProviders export and object in packages/core/src/social-providers/index.ts, making it available for use alongside other providers. [1] [2] [3]

Documentation

  • Added a comprehensive setup and usage guide for Paybin authentication in docs/content/docs/authentication/paybin.mdx, including steps for credential setup, provider configuration, sign-in flow, scopes, and user profile mapping.
  • Updated the sidebar navigation in docs/components/sidebar-content.tsx to include Paybin as a new provider, complete with icon and "New" badge for visibility.

Changes

  • New Provider: Implemented Paybin OAuth provider with OpenID Connect support
  • PKCE Flow: Secure PKCE (Proof Key for Code Exchange) implementation
  • ID Token Auth: User information extracted from ID tokens following OIDC standards
  • Refresh Token: Support for token refresh for long-lived sessions
  • Documentation: Comprehensive setup guide with examples
  • UI Integration: Added Paybin to sidebar navigation with official logo
  • Tests: All existing tests pass (14/14)

Implementation Details

Provider follows the same pattern as other OIDC providers (Google, Microsoft, etc.) and integrates seamlessly with better-auth's existing OAuth infrastructure.


Summary by cubic

Add Paybin as an OAuth provider with OIDC and PKCE, enabling sign-in and token refresh via Paybin. Includes a setup guide and a new sidebar entry to make configuration straightforward.

  • New Features

    • Implemented Paybin provider with authorization, token exchange, refresh, and ID token-based user profile mapping.
    • Registered in socialProviders and exports for immediate use.
    • Defaults to openid/email/profile scopes; supports custom issuer, scopes, and override hooks.
  • Documentation

    • Added Paybin setup guide with credentials, config, sign-in example, scopes, and profile mapping.
    • Updated the docs sidebar to include Paybin with an icon and “New” badge.

🔄 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/5626 **Author:** [@redoh](https://github.com/redoh) **Created:** 10/27/2025 **Status:** ✅ Merged **Merged:** 10/28/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/paybin-provider` --- ### 📝 Commits (2) - [`c2270e1`](https://github.com/better-auth/better-auth/commit/c2270e133b1436d42f1d29a2a885f96ff20e5e47) feat(paybin): add Paybin OAuth provider - [`16b42b1`](https://github.com/better-auth/better-auth/commit/16b42b11704557ab30ff6429978a5832fe307ec7) Update packages/core/src/social-providers/paybin.ts ### 📊 Changes **4 files changed** (+238 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+32 -0) ➕ `docs/content/docs/authentication/paybin.mdx` (+81 -0) 📝 `packages/core/src/social-providers/index.ts` (+3 -0) ➕ `packages/core/src/social-providers/paybin.ts` (+122 -0) </details> ### 📄 Description This pull request adds support for the Paybin OAuth provider to the authentication system, including documentation, provider implementation, and integration into the provider registry. The changes introduce a new Paybin provider with a dedicated setup guide, making it easy for developers to configure and use Paybin for authentication. **Paybin Provider Integration** * Added a new `paybin` OAuth provider implementation in `packages/core/src/social-providers/paybin.ts`, supporting authorization, token exchange, refresh, and user profile mapping according to OpenID Connect standards. * Registered the `paybin` provider in the `socialProviders` export and object in `packages/core/src/social-providers/index.ts`, making it available for use alongside other providers. [[1]](diffhunk://#diff-b8cd6a9ea26c0a06a00d6952cc79f8aff19b69206f405b4321c3b58987a708dcR21) [[2]](diffhunk://#diff-b8cd6a9ea26c0a06a00d6952cc79f8aff19b69206f405b4321c3b58987a708dcR65) [[3]](diffhunk://#diff-b8cd6a9ea26c0a06a00d6952cc79f8aff19b69206f405b4321c3b58987a708dcR110) **Documentation** * Added a comprehensive setup and usage guide for Paybin authentication in `docs/content/docs/authentication/paybin.mdx`, including steps for credential setup, provider configuration, sign-in flow, scopes, and user profile mapping. * Updated the sidebar navigation in `docs/components/sidebar-content.tsx` to include Paybin as a new provider, complete with icon and "New" badge for visibility. ### Changes - **New Provider**: Implemented Paybin OAuth provider with OpenID Connect support - **PKCE Flow**: Secure PKCE (Proof Key for Code Exchange) implementation - **ID Token Auth**: User information extracted from ID tokens following OIDC standards - **Refresh Token**: Support for token refresh for long-lived sessions - **Documentation**: Comprehensive setup guide with examples - **UI Integration**: Added Paybin to sidebar navigation with official logo - **Tests**: All existing tests pass (14/14) ### Implementation Details Provider follows the same pattern as other OIDC providers (Google, Microsoft, etc.) and integrates seamlessly with better-auth's existing OAuth infrastructure. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add Paybin as an OAuth provider with OIDC and PKCE, enabling sign-in and token refresh via Paybin. Includes a setup guide and a new sidebar entry to make configuration straightforward. - **New Features** - Implemented Paybin provider with authorization, token exchange, refresh, and ID token-based user profile mapping. - Registered in socialProviders and exports for immediate use. - Defaults to openid/email/profile scopes; supports custom issuer, scopes, and override hooks. - **Documentation** - Added Paybin setup guide with credentials, config, sign-in example, scopes, and profile mapping. - Updated the docs sidebar to include Paybin with an icon and “New” badge. <!-- 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-03-13 12:48:30 -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#6122