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

Closed
opened 2026-04-13 09:26:28 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5626

State: closed
Merged: Yes


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.
**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5626 **State:** closed **Merged:** Yes --- 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. -->
GiteaMirror added the pull-request label 2026-04-13 09:26:28 -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#14369